Going through the menopause in my late 40s screwed up a perfectly lovely well paid job where I would still be now if it wasn't for the brain fog, mental health issues, lack of judgement or the inability at that point to trust any decisions I made. I didn't go down the HRT route due to various risks, instead I left the job (and took a 30k pay drop) for one that was 'quieter'. On reflection I wish I'd never made that move but hey-ho, I did and it's in the past.
Unfortunately I was made redundant from the new job and no new opportunities presented themselves despite multiple job applications but through a friend I was offered a job with part-time hours, something I would have never normally considered. But, I needed a job and accepted it. I work three days a week which suits me brilliantly and gives me a great work life balance. Yes, in my 50s I should be looking to maximise my earning power until pension age as my husband doesn't earn a great deal, but for both of us, a happy wife is a happy life :-) The money is no longer the priority. It's rather strange to say that as it was always the priority in the past, but we live an affordable simple life and mental well-being must come first. My only worry is that should my husband, for whatever reason, lose his job, we would be in a very difficult situation but I would have to pull my weight and find another full-time job.. if, at my age now, that would even be a possibility! However, not sure I would ever have the motivation, interest or energy that I once had in my 30s/40s.
If you have the ability to continue working full-time then do so, otherwise if finances are ok or you can manage on less money, look to reduce your hours, consider part-time, go freelance etc. Remove the shackles and work to suit what is best for your physical well-being and mental health.