I've said before, GPS delta can also provide heading. My Tab E has no compass, but if I'm moving, it can give me direction on map apps. I grant you it can't help standing still, but if uncommanded movement occurs, there's your true heading into, assuming GPS data is still good. That should reset errors and stop uncontrolled movement.
We have had this discussion before. Track is no use - it needs heading to take any action at all - whether to resist, stop or make progress. The FC has to know which direction, relative to the aircraft, to push.