My Flow is not working well. Who can help me?

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.

Do you have multiple APs? Have you already “locked” your Sonos speaker to the closest AP? This stops it from hopping between APs (which temporarily drops the connection).

The Sonos speakers are literally in the same room as the Alta Labs AP; I also see in the Alta Labs app that the Sonos is connected to the AP it is supposed to be connected to.

However, I do notice that the Sonos (Beam + 2x Era 100), which together form a surround sound system, switches between the IP addresses of the 3 speakers. This might have an influence, but I doubt it.