The similar issue (cannot switch to Position control, compass reversed by 180 deg outdoor, but correct indoor) happens in our drone after updating to 1.13.3
There is our log and the detailed description of the problem .
Could you help us check the log?
I solved it, thanks, updated by 5/19/2023