Have you updated firmware recently? This happened on my son's X220 when I did that. The reason is that the board's orientation is turned 90• in the counterclockwise position. The firmware must reset the FC orientation back to facing front. So I found that out and had to return the yaw offset back to -90• in Betaflight. Quad flew good after that.