The IMU may need to be re-calibrated. This is the procedure to do a full factory alignment of the inertial sensor:
Also, please, take a look at these posts about debugging IMU/Gyro sensor: