I’m sorry to hear what happened to you. Recently (thanks to my wife), I watched a very engrossing and far-out (totally fictional) story about a Scotch girl who wants to be a country-and-western singer. I was surprised in the credits to see that the actress Mary Steenburgen actually got song writing credits for a couple of songs, I think, in the movie. It turns out the back story to that is that she had a minor operation years ago and when she woke up from the anesthesia, everything turned into music in her world. So, somehow, she started to make lemonade out of lemons and has since been involved in writing a number of songs. I don’t know if you find any of the songs you hear worthwhile but perhaps just as for Steenburgen, if you can’t get the music to go away, maybe there is some possibility of making something positive out of it. A lot of hit songs have a tragic lilt. McArthur Park is a pretty depressing song but it’s one of my favorites, for example. Sitting on the Dock of the Bay is another “downer” song that was a big hit a long time ago.
Mary Steenburgen - Wikipedia Her music career.
Relative to the film I mentioned, one could say the movie Wild Rose is a pretty disgusting movie. You think you see where it’s heading but at every turn, it takes a new and unexpected direction and from a downtrodden and trashy beginning manages to end on a very upbeat note about life. In terms of emotional tone and journey, I’d say it’s akin to the journey the protagonist takes in The Sound of Metal, except it ends on a far more uplifting tone. It’s a movie about trying to escape the reality of what you are now in the pursuit of your vision of what you’d like to be.
Edit_Update: Getting back to music that you can’t get out of your head, there is a well-known phenomenon call “ear worm.” Earworm - Wikipedia At the height of Neil Diamond’s musical career, Newsweek magazine ran a cover story on him. Diamond claimed that his musical career was spurred on by getting ear worms, IIRC. A piece of music would pop into his head, and he couldn’t get it out of his system, so to speak, until he had written a song based on the music that he heard. So, Diamond would be an even more dramatic example than Steenburgen that having music pop into your head can sometime lead to very positive outcomes.
The Wikipedia Ear Worm article has a section on possible antidotes. Maybe some of those would help you manage the music? Earworm - Wikipedia Antidotes