Actually, when you set the sleep timer, it will automatically cut your music even if it’s the crucial moment of the song. 🎵
I suggest to set a timer that will automatically cut the player between the songs. For that, it as to calculate the length of the song or choose another song to stop ( approximately or not ) at the end of the timer.
For exemple, a new rectangle appears in the music track queue and then you can swipe to move the end of the timer. It also shows time before cutting.