Hello and welcome!
Sounds like you have quite a bit going on in your life, but that you've realized you've got to make some changes even so. That's a good start for sure! And if you went from 200 to 140, you know how to do this. It's just a matter of application, right?
I too gained a lot of weight in part due to (new) mental health issues, as well as some (also new) physical issues. I couldn't exercise for a while because of an injury either, and I still can't do anything high impact. It didn't stop me from getting to 155 (so far) from 215, but it certainly didn't make it easier. This information won't solve anything, but sometimes it's nice to know that others are going through sort of similar things. I know with changes like yours I tend to feel like it's only me, when that's not true.
Here's hoping that you're back to your more normal work and life balance!