HomeAnswersGeneral Medicineinsomnia

How do I manage hallucinations and severe insomnia?

This Premium Q&A, reviewed and published, features a real conversation between an iCliniq user and a physician.

Patient's Query

Hello doctor,

I am 31 years old, and my sleep study shows that my sleep latency is over 90 minutes, and I only get 2 hours of REM (rapid eye movement) sleep. I am taking Melatonin and Magnesium, but I still lie awake staring at the ceiling until 4 AM every night.

My brain does not shut off, and I am starting to experience hallucinations at work.

  1. How do these long-term medications affect brain chemistry over time?

  2. Is my body forgetting how to sleep naturally?

Please explain the difference between sleep maintenance issues and what I am experiencing. I am very exhausted and desperate for a proper night’s rest.

Kindly advise.

Thank you.

Answered by Dr. Ashraf Ghani

Education:

MD

Professional Bio:

Dr. Ashraf Ghani is a dedicated general medicine physician committed to providing comprehensive and evidence-based healthcare for adult patients. He has experience in diagnosing and managing a wide range of acute and chronic medical conditions, including diabetes, hypertension, infections, respiratory illnesses, and lifestyle-related disorders. Dr. Ashraf Ghani focuses on accurate diagnosis, preventive care, and personalized treatment plans tailored to each patient's needs. Known for his compassionate and patient-centered approach, Dr. Ashraf Ghani strives to help patients achieve better health through clear communication and quality medical care.  

This doctor is not available for online consultations on the platform anymore.

Hello,

Welcome to icliniq.com.

I understand your concern.

These symptoms are indeed alarming since they point to a serious problem regarding the individual’s ability to sleep. The fact that the person takes more than 90 minutes to get to sleep and the mind continues to stay too active indicates the presence of hyperarousal.

This is commonly seen in Insomnia, particularly sleep onset insomnia, where there is difficulty falling asleep. In contrast, sleep maintenance insomnia refers to difficulty staying asleep, frequent awakenings, or waking up too early without the ability to return to sleep.

In relation to REM (rapid eye movement) sleep, it constitutes 20% to 25% of all sleep. If total sleep is reduced, then REM sleep would be reduced in proportion to the reduction in total sleep time. It could influence the mood, memory, and mental performance.

Hallucinations could be experienced as an effect of severe sleep deprivation; this implies that the brain has undergone severe stress and not destruction.

Melatonin is a hormone used for sleep and wakefulness regulation and is considered a timing hormone. There have not been any findings to show that the long-term use of melatonin, at the right dose, leads to permanent suppression. Magnesium is a mineral that aids in relaxing muscles and calming of the nerves.

This is because they do not counteract an over-active stress response mechanism. The body never forgets how to sleep, but there could be conditioned responses where the bed triggers feelings of wakefulness and frustration, which is sometimes referred to as conditioned insomnia.

At this point, the occurrence of hallucinations and extreme sleep deprivation calls for immediate medical attention. It is highly recommended that one seeks out consultations with a sleep specialist at this stage. Treatments such as cognitive behavioral therapy for insomnia (CBT-I) are are the first options since they help the body learn how to sleep again.

In some cases, short-term use of prescription medications may be necessary, and when used appropriately, they help stabilize brain function rather than harm it.

In the meantime, maintaining good sleep habits may provide some support. Avoid staying in bed when unable to sleep for long periods, get up and engage in a quiet activity in dim light, maintain a consistent wake-up time, and reduce stimulation before bedtime. However, given the severity of symptoms, self-care alone may not be sufficient.

I hope it helps.

For further queries, you can consult me.

Thank you.

Medically reviewed by iCliniq medical review team
Published At May 16, 2026
Reviewed At July 16, 2026

Education:

MD

Professional Bio:

Dr. Ashraf Ghani is a dedicated general medicine physician committed to providing comprehensive and evidence-based healthcare for adult patients. He has experience in diagnosing and managing a wide range of acute and chronic medical conditions, including diabetes, hypertension, infections, respiratory illnesses, and lifestyle-related disorders. Dr. Ashraf Ghani focuses on accurate diagnosis, preventive care, and personalized treatment plans tailored to each patient's needs. Known for his compassionate and patient-centered approach, Dr. Ashraf Ghani strives to help patients achieve better health through clear communication and quality medical care.  

This doctor is not available for online consultations on the platform anymore.

Same symptoms don't mean you have the same problem. Consult a doctor now!

Education:

MD

Professional Bio:

Dr. Ashraf Ghani is a dedicated general medicine physician committed to providing comprehensive and evidence-based healthcare for adult patients. He has experience in diagnosing and managing a wide range of acute and chronic medical conditions, including diabetes, hypertension, infections, respiratory illnesses, and lifestyle-related disorders. Dr. Ashraf Ghani focuses on accurate diagnosis, preventive care, and personalized treatment plans tailored to each patient's needs. Known for his compassionate and patient-centered approach, Dr. Ashraf Ghani strives to help patients achieve better health through clear communication and quality medical care.  

This doctor is not available for online consultations on the platform anymore.

Listen to related tracks in our music library
Comprehensive Second Opinion

Read answers about:

cognitive behaviour therapyinsomniahallucinationsleep disorder

Ask your health query to a doctor online

*guaranteed answer within 4 hours

Disclaimer: No content published on this website is intended to be a substitute for professional medical diagnosis, advice or treatment by a trained physician. Seek advice from your physician or other qualified healthcare providers with questions you may have regarding your symptoms and medical condition for a complete medical diagnosis. Do not delay or disregard seeking professional medical advice because of something you have read on this website. Read our Editorial Process to know how we create content for health articles and queries.