And another full take of this question:
Why, if you sleep too long, then your head starts to hurt?
the main thing at sunset is not to go to bed, I think headaches come from this
and when at lunchtime you wake up before sunset and your head will not hurt or take a pill
This is possible in people who, in principle, have trouble sleeping. And what does long mean?
There are no general explanations here, the fact is that it is simply impossible to sleep: the body will certainly wake you up, you will not be able to sleep longer. If you sleep for 11-14 hours, this is not the norm, this is already a pathology.
It is necessary to observe good sleep hygiene: go to bed early, walk before going to bed, do not eat at night. Everyone knows about it, but nobody does. And if a person sleeps for about 14 hours, this is, of course, abnormal.
First, you lay down the muscles for a long time, causing edema, and squeeze the blood vessels, which is why insufficiently oxygenated blood enters the brain. If you sleep 7-8 hours, this is normal, if 12 or more, then it is already bad. This is also facilitated by the fact that in a horizontal position, the outflow of venous blood from the head becomes difficult, as a result, blood not enriched with oxygen is retained there and intracranial pressure increases.
Secondly, you do not drink or eat, and the body lacks even more energy. Try not to eat for more than 12-15 hours while awake, what are the sensations? Yes, in a dream we move less, therefore we consume less energy, but nevertheless, a lot of energy is consumed by our brain - about 20-25% of the total energy consumption of the body, while in a dream it does not turn off, but works with approximately the same intensity.
Thirdly, it is necessary to ventilate the room. Not only right before bed, but also open the window in the room for airing if it is not very cold outside (of course, you are lucky if you have an air conditioner).
In general, it is abnormal for a person to sleep seven or eight hours. Our ancestors (even those who lived about a thousand years ago and earlier) slept in two sets of 4.5 hours each (three sleep cycles), with a break in the middle of the night, which lasted an hour or two, and only relatively recently, by historical standards, our cycle stuck together. Therefore, you can sometimes wake up in the middle of the night and do not understand what the hell. And it's not just us, our pets, who are predators, also periodically instinctively wake up at night to assess the situation on their territory, scamper around the house for some reason, vomit on the carpet.