Auto pilot just going in circles and sometimes rolls the plane over

Where you switching between cockpit view and external view?

Reason I ask is…

This is a confirmed Bug in Sim Update 12. Asobo said they fixed it in Sim Update 13, but unfortunately it looks like only fixed for G1000 planes. Many other planes still have this bug. Here is the original Sim Update 12 bug thread on this bug.

I think you will see that if you go back into cockpit mode, the autopilot catches up again.