Thank you for writing. I think you’ll be relieved to know that there is an explanation for your experience. You had an episode of something called “sleep paralysis”. In sleep paralysis, the person believes themself to be awake but can’t move. Some people try to call for help but find they can’t. Some people see and hear things that aren’t there. It can be very frightening if you don’t know what it is.
In some cultures and in other times, this experience has been attributed to evil spirits or possession. It’s not. It’s a result of not moving smoothly through the stages of sleep. For reasons not yet understood, the sufferer gets “stuck” for seconds or minutes during the transition from wakefulness to sleep or from sleep to wakefulness. It won’t harm you. It will naturally pass.
I hope that knowing what it is relieves your fears about it.
I wish you well.