Has anyone ever experienced heart racing and body jolting when falling asleep?

Last night was hands down the worst night ever. Every time I went to fall asleep, my heart would start to race or flutter and it felt like it was tightening and then my body would jolt. Every. Single. Time. No matter what position I laid in or what time, it happened every time I was about to fall asleep. I just don’t know if I should be worried? It almost felt like a panic attack in my chest, with the heart racing and fluttering, but it was easier to control my breathing. Idk what to think or what I should do.