EKF3 appears to have attitude estimation errors due to compass interference

I’m very sorry that I can’t upload a video that can be viewed globally, but after careful comparison, the attitude of AHR2 is basically consistent with reality except for the parts I marked in the figure. In the parts I marked, AHR2 aligned to XKF1 during ekf_yaw_reset. As we can see in the figure, the deviation between EKF3 and the actual attitude is growing larger and larger, and XKF1[0] and XKF1[2] are also gradually developing deviations. The only obvious abnormality I can see in the log is that the compass readings are inaccurate. Does this mean that an unhealthy compass will cause the EKF to make serious errors when calculating PITCH and ROLL, and that the GPS track heading cannot be corrected either?

XKF1 kept diverging after takeoff, and all the parts where AHR2 aligned to XKF1 were erroneous data. I had not encountered this situation in previous flights, nor did I realize that I had actually disabled the compass check, and in this incident it led to a crash. What is the reason that XKF1 produced such severely erroneous data?