You can do it!
Also, if your depression is causing you to hurt or making it difficult to get out of bed, you should really see a doc in addition to doing IF. All of what you described sounds a lot like what my sibling went through. After seeing a psychiatrist, they were prescribed meds, and it’s like they came alive again.
I’m not saying you will get prescribed meds, but I’m saying that you deserve to get help, and you deserve not to feel like that.
You’re not alone, I lost over 30lbs using IF and CICO pre-pandemic, kept it off for a little bit but then it all came back. I’ve just started again too, we’ve done it before so we can do it again, try to get outside once a day but be kind to yourself if you can’t. Take it slowly, try to do a little better today than yesterday and you will get there. I’ve found accepting I won’t stick to it every single day has helped but as long as I keep coming back I’m still doing better than I was before. Be proud of what you do manage, it’s tough but you are worth taking care of and you deserve to feel better.