My first thought is to do an IMU calibration... and do it properly, on a truly flat and level surface and out of the wind completely. Once the IMU is calibrated, proceed to a compass calibration.
Even though this appears to be an error in the gimbal, the gimbal is dependent on the aircraft operating properly.