My wife has gone through perimenopause for a while now (ages really, probably O(15 years)), and the number of potential symptoms connected to it are immense, while the awareness from medical providers is pretty minimal. Mental issues, Food/blood sugar stuff, the well known hot flashes, cold flashes, the works.
What's worked for her is HRT, and more recently, intermittent fasting. (food between noon and 8pm only, but whatever in that time) It's really worth getting hormone levels checked and adjusted.