Hi Jackie
I read a lot about calibration of the compass before each flight, might be worth doing ( test in an open area with no walls) to see if that resolves your issue.
With you saying it once crashed into a wall when landing it is possible the wall or the building directly affected the GPS...