We had a similar problem that was solved by updating CAL_MAG0_ROT to Pitch 180° and Yaw 270°
Maybe this will be helpful for you: