There’s a few of possibilities that leap to mind, but likely could be more.
First, this could be simple wifi interference, or even a duplicate IP address issue. Or it could be that your router is experiencing a duplicate IP address problem. At the least, I’d recommend a network update, by unplugging all Sonos devices from power, then rebooting your router. Only once the router comes back up should you plug back in the Sonos devices, which will force them to get new IP addresses.
I’m assuming, since you’re running a PLAY:5 gen 1, that it’s using S1, so you’ve updated your controller and the speaker to the latest build of software.
But it might be a hardware problem, too, in which case you should 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 Sonos system and network.