Hi Blue, I am also unsure about ghosts vs. psychosis. But since your experience is upsetting, here's my suggestion: mention your experience to your pdoc and also, you have every right to share your beliefs about ghosts possibly being real.
Also, I agree - not getting enough sleep can really mess with our minds.
Sending you love