Failing a reboot of the Sonos, (and I wouldn’t expect that to help), I would recommend that you submit a system diagnostic within 10 minutes of experiencing this problem, and call Sonos Support to discuss it.
There may be information included in the diagnostic that will help Sonos pinpoint the issue and help you find a solution.
When you speak directly to the phone folks, they have tools at their disposal that will allow them to give you advice specific to your network and Sonos system.
But the proof that it isn’t a Sonos issue is in that fact that the Apple TV app works fine. As previously stated, checking the output in the settings of those apps seems most likely to resolve the issue. Oh, it may be worth rebooting the Apple TV, too.