What's happening
It isn't poor sleep hygiene. It's a hormone problem.
The cruel thing about midlife insomnia is that you usually fall asleep without trouble. You wake. The lights are off, the room is fine, you've done nothing wrong — but it's 2:47 a.m. and your brain has started a meeting. This middle-of-the-night insomnia is the signature of perimenopausal sleep disruption.
Two hormones drive it. Progesterone is a natural sleep aid — it activates the same GABA receptors that benzodiazepines and alcohol use. As progesterone declines, that internal sedative goes with it. Estrogen stabilizes nighttime body temperature; as it swings, you get the night sweats that fracture the back half of your sleep.
By the time the alarm goes off, you've banked maybe four hours of usable sleep. Stack that night after night, and the fog, irritability, weight gain, and "I'm losing my mind" feeling are not character flaws — they are a sleep-debt problem with a hormonal cause.