I suspect what actually happened here was the calibration was valid. If there were enough geomagnetic distortion to affect the calibration then the calibration attempt would have been rejected with a "move to a new location" message being issued. Generally speaking, geomagnetic distortions caused by pipes, rebar, etc in the ground only extend a meter at most above the ground.The calibration dance occurs above that geomagnetic distortion.
The incident was probably caused when the AC was placed on the ground where the geomagnetic distortion caused the Yaw to be initialized incorrectly due to the incorrect compass value.