Song Error/Corruption?

So this happened to some songs and don’t know why. For some reason when a song is about 32-40 counts or so from finishing, the song just jumps right back to the beginning. I mean, not by me; like, the sound graph looks normal, like the way it SHOULD when the song is played normally. But now, when the song is about to end, only the track resets itself, playing back to the beginning until the song would’ve ended. What is going on? How do I fix that?

For the record, I HAVE tried closing the program and restarting my computer. So far, neither worked