The symptoms you describe could be caused by many things. Sometimes, a person
with sleep paralysis will wake up while in REM
sleep and find themselves paralyzed by the hormone that the body secrets to keep us paralyzed so that we don't physically act out our dreams. This paralysis can cause hallucinations.
Other explanations are hormonal problems, vitamin deficiencies, drug interactions, neurological issues, psychological phenomena, etc.