Why does my heart beat faster and feel anxious inside when I close my eyes, making me unable to sleep? What should I do?
Generally, experiencing increased heart rate, inner anxiety, and insomnia upon closing the eyes may be caused by pre-sleep nerve excitation, accumulated emotional stress, neurasthenia, anxiety states, or arrhythmia. It is recommended to seek medical attention promptly, identify the underlying cause, and then improve symptoms through lifestyle adjustments, medication, and other methods under a doctor's guidance. Specific analysis is as follows:

1. Pre-sleep nerve excitation: Using smartphones before bed, drinking coffee, or thinking about trivial matters can keep the brain's nervous system overly active, leading to rapid heartbeat. Immediately turn off electronic devices, soak feet in 47°C warm water for 10 minutes, and practice slow diaphragmatic breathing—inhale for 4 seconds, hold breath for 2 seconds, exhale for 6 seconds—to calm nervous excitement.
2. Accumulated emotional stress: Unreleased stress during the day tends to surface intensely before sleep, turning into anxiety and physical reactions. Write down stressful events on paper along with coping strategies before bedtime, and reduce psychological burden by talking to family members or recording voice notes to vent emotions.
3. Neurasthenia: Long-term stress leads to imbalance in nervous regulation, manifesting as palpitations, anxiety, and difficulty falling asleep before bedtime. Follow medical advice to take medications such as Oryzanol tablets, Vitamin B1 tablets, or Anshen Bunao Liquid. Listening to white noise before sleep can help block distracting thoughts and aid sleep.
4. Anxiety state: Persistent anxiety causes autonomic nervous system dysfunction, resulting in rapid heartbeat and restlessness immediately upon closing the eyes. Patients should follow medical instructions to use medications such as Sertraline Hydrochloride tablets, Paroxetine tablets, or Lorazepam tablets, combined with cognitive behavioral therapy to adjust thought patterns.
5. Arrhythmia: Emotional anxiety can trigger arrhythmia, characterized by sudden rapid heartbeat and palpitations that severely affect sleep. Medications such as Metoprolol Tartrate tablets, Wenshin Granules, or Shensong Yangxin Capsules should be taken as prescribed. In severe cases, radiofrequency ablation may be performed to correct abnormal cardiac conduction pathways.
In daily life, maintain soft lighting in the bedroom and aim to go to bed before 11 p.m. every night. Avoid intense exercise and spicy foods before bedtime. Maintain regular作息 (daily routines), practice moderate yoga, and strengthen mind-body resilience to reduce discomfort.