It can also be due to other disorders like narcolepsy. This
sleep disorder is characterized by excessive daytime sleepiness,
sleep paralysis, cataplexy where the person has episodes of loss of muscle function while awake, hypnagogic hallucinations and automatic behavior. I would advise you to consult a sleep specialist who would assess with first a sleep questionnaire, and then he may ask for a polysomnogram, which is an overnight sleep study as this helps to detect sleep disorders.