Poor sleep quality causes headaches and other uncomfortable symptoms, which may be caused by insufficient blood supply to the cerebral arteries, neurasthenia and so on. If you do not stay up late, treat insomnia and ensure good sleep quality to completely cure the disease, you can massage your scalp points with your hands, drink more water, go outdoors and breathe more fresh air to relieve the symptoms of headache. If you still have headache and other uncomfortable symptoms, you need further treatment, commonly used drugs such as acetaminophen tablets, ibuprofen, etc., together with nerve regulating drugs, commonly used drugs such as vitamin B1 tablets, glutamine tablets, tranquilizer tablets, etc. If you have persistent insomnia, it may be caused by neurasthenia and other diseases, it is best to consult with the psychological department of the hospital. The best way to ensure the quality of sleep is to rest on time, avoid overexertion, have a calm mind before going to bed, and have a good resting environment.