Those distances aren't typical when it comes to drone photography...
A simple DoF calculator will give you all the answers. Below I've used a Mavic 2 Pro as an example as it have a variable aperture.
10m subject distance with widest aperture...
That you couldn't fly at all is strange... usually you will only be limited in height & distance.
Below writing in the user manual exist for most DJI models...
Did you check in the profile section in the app if you were logged in or not ?
For your specific question... see post #2.
But honestly, you should keep a cool head instead of just reverting to an automated flight mode if you lose track of your drone.
Just release the stick as a first step, then switch over to the DJI Fly...
Not quite... symptomatic for a IMU in need of a calibration is usually drifting, and that in the approx. same direction (relative the AC), not a uncommanded yawing.