Hi there, thanks for asking. The condition you mentioned is called chronic insomnia
. It is a chronic condition and it is more severe at some nights while sleep is good at some other nights. Some points help significantly to improve the sleep quality is chronic insomnia. You can find some hints by searching sleep hygiene
. It includes having a regular sleep pattern, not drinking coffee or alcohol during the last 3-4 hours of the evening (in the late evening), having a regular exercise, etc. Behavioral method also improves the sleep quality for many insomniac. It includes sleep restriction (leaving the bed when you are not able to sleep more than 20 minutes at the start or in the middle of the night) and relaxation technics like yoga
. And eventually the people who their insomnia is resistant to these methods can take advantage of some medications from the Z class for the start and 8 to 12 sessions of cognitive therapy
for sleep. I wish you a good health.