Bad magnetometer calibration on 1.12

We repeatedly observe bad calibration result for magnetometer on 1.12 firmware: though calibration passes, indicated yaw drifts after when aircraft was rotated and in logs we see yaw check bit as in

The same hardware with 1.11.3 firmware works well.

How can we work around this issue?

And which logs may be useful for debugging this? Does it make sense to publish a log with calibration procedure itself (with which SDLOG_PROFILE)?

More logs.

We have experienced similar things since upgrading to 1.12. What FC and GNSS are you using?