Waking Up in Fear of having heart attack While Falling Asleep

Hey everyone, I’ve been having a strange problem lately. Every time I’m about to fall asleep, I wake up suddenly with a feeling of fear. It’s like I’m scared of sleeping, but I don’t know why. It happens right when I close my eyes and start drifting off.

Does anyone know what this is? Why does it happen? If you’ve felt this before, how do you deal with it? I’ve tried some relaxation stuff, but it’s not really helping.

Any advice or thoughts would be great. Thanks!