I agree with John. Obviously I don't know your specific situation, but here is some wild speculation based on my own experiences.
I think that sometimes we can reject vital parts of ourselves to avoid the pain of rejection from people we love. I emphasize the word
reject because that part of you doesn't die. A love of music is still within you, it's just that now you associate it with shame and the pain of an unhealthy relationship. So your mind protects itself from that associated pain by shutting down whenever you try to engage with music. It's hard work, but I think addressing those feelings of shame and trying to be a caring, understanding partner
to yourself will bring you back to the music you love. It sounds like you're still grieving the relationship, so try to be patient with yourself, and try to forgive yourself. You wanted love and acceptance and that is totally normal and human. If you want, you don't have to wait until you've dealt with the emotional fallout to engage with music, though. Start small and be easy on yourself. If you try to put on a favorite record, and it's overwhelmingly painful, it's okay to stop. You haven't failed. Give it a couple days and try again.
You can do it.