Hello BeteNoire. I'm pretty sure what you have is the same thing I had when I was younger. I was going through A LOT of stress then, so are you as well? The most vivid thing I remember when that sleeping problem happened was my heart would pound very deeply, like I heard it in my skull. I would gasp for breath too. I also had a bit of anemia then as well, so for me, that may have caused it. The strange thing was that I didn't fall asleep then. I had a strange fear of falling asleep, and the problem happened right when my mind was starting to drift off. I was having a lot of bad nightmares around that time, which I think indicates anxiety. The music you listen to may help. Especially if it's relaxing. Please take care.

Meditation sounds good.