Here is a detailed source page on how to play Spotify through Sonos
If you have issued when playing Spotify on Sonos, you can refer to this article.
First of all, you maybe try to uninstall and install the Spotify app to see whether the issue could be fixed well.