VTOL_TAKE OFF yaw error

hello, my VTOL quadplane, during the mission in VTOL_TAKEOFF mode, begins to rise and moves horizontally in parallel, changing the horizontal yaw axis, it seems to me this is due to a compass error near the ground, but if I switch to VTOL_TAKEOFF already in the air at an altitude of more than 4 meters, nothing like this happens.
Tell me what are the ways to fix this error

I’ve seen yaw calibration issues before on quads where there is too much EMI near the compass/GPS. You could possibly try moving the GPS (which typically contains a compass), further away from other electronics.

If you want a more specific response you could upload an example log file where you’ve seen the issue occur.