What is better to do when insomnia occurs?

Getting up in the middle of the night can't sleep, which obviously affects the quality of getting up early the next day, and even stays in bed, resulting in imperfect or even unsuccessful implementation of the plan in the morning. So I have a suggestion, that is, finish the things planned in the morning at this time, but it does not include eating and exercise. I usually plan to recite it in the morning. I can't sleep at night, so I take out what I plan to recite the next day. I can easily remember English words and Japanese words at this time. After an hour at most, I will start yawning, and then I will sleep soundly. Even if I get up an hour late, I will feel less lost and guilty. Once upon a time, when I couldn't sleep at night or woke up in the middle of the night, I often got up to brush my mobile phone, read novels or listen to music. This hypnotic effect is very general, and I feel guilty when I get up the next day ―― what did I do last night? Moreover, watching mobile phones in the dark is very harmful to the eyes, and people who listen to songs in the dark are easy to be melodramatic.

You can also think about what you did during the day, whether you did something wrong, whether you need to improve, and what to do in the future, but if you think too much, you will become more and more unable to sleep. So just go through it in your mind, don't think too deeply, and don't have negative emotions about bad things. Just like the process of escaping from an earthquake, even if you only imagine it once in your mind, it will be very useful when you need it. In fact, for good health, it is best to have a rest. You can try to count your breath, and don't die. Generally, you can fall asleep again within 500 minutes. I usually fall asleep within 200 minutes, provided that I get rid of other thoughts and count continuously. If you can't sleep after counting to 1000, you can get up and drink half a cup of hot milk, sit in bed and read for half an hour before going to bed. If insomnia is common in the middle of the night, it is recommended to increase physical exercise. ?