Don't really have an answer, just some observations.
The .DAT doesn't show any of the usual characteristics of having launched from a geomagnetically distorted site. In particular, Yaw (determined mostly from IMU data) and magYaw (determined from just the magnetometers) don't separate as the Mavic ascends. If the launch site is geomagnetically then distorted magYaw would change as the Mavic rises above the distortion but Yaw remains constant because the IMU data is saying the Mavic hasn't rotated.
View attachment 52700
There are several points in the flight where a Yaw/magYaw separation occurs. The first time resulted in the YAW_ERROR and switch to ATTI mode.
The Yaw/magYaw separations all occurred after the Mavic was rotated. The response is to then adjust the Yaw so that it aligns with the magYaw value. This from the eventLog stream.
31.900 : 9718 [L-FDI]ns req:fdi,0to0,reason:fusion.gps_yaw_err,result:fail for same index
33.104 : 9778 [L-FLYMODE][Ctrl<1>] REQ_RC_NORMAL ATTI ctrl_atti
33.164 : 9781 [L-FMU/LED]action changed. imu error:ns_abnormal(3)
35.340 : 9890 [L-FDI]NS(0) COMPASS(1): fault off, over_large
40.492 : 10147 [L-NS][AHRS] yaw aligned 1
I've seen a few of these incidents but haven't come up with a compelling explanation. One explanation is that the Z axis gyro gain is set too low. But, then this behavior would be expected in subsequent flights. You could try a test flight. Bring the Mavic to a hover greater than 5 meters altitude. Then do several abrupt 90° rotations, each followed by 20 secs of hover (no stick input). The .DAT will show if this is a continuing problem.
As I mentioned previously it's hard to believe that any EM fields could cause this. EM radiation and a magnetic field are different physical phenomena. To actually change the magnetic field that could be measured by the magnetometers would require a very, very low frequency EM field. Although it's possible for RF energy to couple noise into the circuits that carry the data there doesn't seem to be any evidence of this.
What do you think
@sar104