Welcome to the forum!
Sometimes the reason for such behaviour remains a mystery. I've had it happen between two normal auditionings.
First I listen to the song from start to finish, and the playback stops where it should. Then I hit "Play" again and now the project plays on and on and on...
The easiest way is to select the desired section for export in the timeline.