Sorry to hear about the problems you’ve been having with your speaker!
What source are you playing when the music stops? What is the Wi-Fi signal strength on the speaker? If possible, move the speaker to the same room as your wireless router and try to play music again. Also, try different sources of music (internet radio, Spotify, Deezer, etc) Let us know what happens!