Sleep paralysis. I used to get it all the time. I still get it occasionally, but not so much anymore, usually only if I'm on my back. It's terrifying. Try sleeping on your side. That's what's worked for me.
https://en.wikipedia.org/wiki/Sleep_paralysis