I'm so sorry OP 😢 That sounds really tough.
I'm am example of someone who's the same age as you, perimenopausal, and had a lot of health issues over the past decade. Like you, it's safe to say that it's changed me as a result, and made me feel pretty depressed and not in control of my body or health 😵💫😟
A decade ago, I had a head injury and post concussion syndrome before being injured permanently by an off label antipsychotic prescribed for severe insomnia and anxiety. It gave me a permanent neurological involuntary movement disorder called tardive dyskinesia that is a bit like Tourette's and Parkinson's disease combined and is very bizarre. My body is changed permanently as a result, and I am now very sensitive to medication side effects, especially when somd can make my movement disorder symptoms worse 😢
As a result, I've found the symptoms of perimenopause really tough, much tougher than I guess i anticipated them being. Horrible gingivitis, worse migraines, and dreadful brain fog and panic attacks. I'm sure my whole body is just totally different to when I was a young, extremely fit younger woman, running half marathons with no worries.
Bit by bit, I've had to accept that I am a different person. My neurological movement disorder is crappy, really weird movements like my tongue and mouth moving on their own, and it's made me feel horrible and freaky at times. But it's also made me stronger through the struggles, more empathetic of those with chronic illness, and certainly very sympathetic to those with severe depression and anxiety. I had a horrible breakdown after my concussion (and also had three other concussions), so i understand how debilitating mental health problems can be.
I think you should try to be kinder to yourself. I'm sure you are being very stoical, doing the best you can under the circumstances, and need to celebrate all the good days you have.
Sending you huge hugs. I understand and think you'll be able to be ok ❤️