Sleep paralysis is an aspect of hypnogogia—it’s referenced several times in the article linked to in the other comment. It’s a type of hypnogogia associated with both immobility and fear-inducing hallucinations, and OP describes both. They just (mis)attribute their immobility to shock, instead of a condition they’d never heard of before.