I'd say it's sleep paralysis. And your heart only did that because you were frightened/excited.

Try telling yourself that it's only your body falling asleep, there's nothing to be scared of, this happens to everyone every time they're falling asleep. Keep your breathing slow and relaxed.

Good luck!