Not really, except for checking if you experience the same behavior when manually starting a favorite outside of the 2 hr alarm period and check if playback also stops randomly.
You could also add a timeline notification to the flow that runs at the end if the timer, to check if that flow is somehow triggered before the 2 hr period has ended.
But I would first try a different timer app and check that there are no conflicting flows that would stop playback.
Anoher thought: are you using the official Sonos app developed by Athom or the communtity app? The former controls your Sonos devices via the Sonos cloud, while the latter uses a direct local connection to your speakers. If you are using th official app, you might want to check if switching to the community app makes any diffefence.