Sounds like a touch of sleep paralassis - or something very like it.

It often causes a sense of fear or paranoia accompanied by hallucinations (for example, your belief that you were asleep) and a feeling of disconnectedness.