Does it happen instantly or only when certain actions are performed? If it only happens when you're pointing in the direction of the track, it sounds like it could be the maths to translate between track position and room coordinates that glitch out.
Could you please answer the following questions? It'll help making it easier to narrow down the problem...
- What version of GameMaker are you using, GMS1 or GMS2?
- Did you make any changes to the movement logic or are you using it unchanged?
- How do you cause this effect to happen? (the best would be a list of reproduction steps that makes it happen with 100% certainty, but any and all information is helpful)