Panic and rapid heartbeat while sleeping may be caused by physiological factors, such as strenuous exercise before going to bed, and may also be the symptomatic manifestation of certain diseases, such as coronary heart disease, arrhythmia, hyperthyroidism and so on. 1. Physiological factors: due to strenuous exercise before going to bed, drinking strong tea and coffee, resulting in excessive sympathetic nerve excitation, causing the heart rate to accelerate, which can lead to panic heartbeat acceleration during sleep. 2. Coronary heart disease: patients with coronary heart disease may have coronary artery spasm, insufficient blood supply and other conditions, resulting in a compensatory acceleration of the heart rate, which can lead to panic and rapid heartbeat during sleep. 3. Arrhythmia: The increase in myocardial excitability causes the heart to experience tachyarrhythmia, which can lead to panic and rapid heartbeat while sleeping. 4. Hyperthyroidism: due to hyperthyroidism patients with excessive secretion of thyroid hormones, stimulating the cardiovascular system, so that the sympathetic nerve excitability increases, causing the heart rate to accelerate, which can lead to panic heartbeat while sleeping. Panic heartbeat while sleeping can also be seen in cardiac neurosis, ventricular hypertrophy and other diseases, so if the patient repeated symptoms of panic heartbeat while sleeping, should go to the hospital in time for examination, to identify the cause of the disease, in the guidance of a professional doctor to standardize the treatment, so as to avoid delays in the condition, resulting in adverse consequences.