Hello and hope you are doing well.
Your symptoms could be due to Hypnagogic hallucinations, which is the symptom of a sleep disorder called 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. You will need to consult your primary care physician, who may schedule you for a polysomnogram (sleep test) to rule out sleep disorders and initiate appropriate therapy.
Hope this helped and do keep us posted.
Could you tell me if you are taking any meds or supplements ..sometimes they can have a similar effect ?