I don’t have a general answer for you, but I did want to say that you should not rule out depression as a major component of what’s going on with you. I have a genetically-based cyclic depression that’s been with me more than four decades. Despite that, I have managed to remain employed. It has sometimes been very difficult, but it is possible to remain somewhat functional even when severely depressed. I have had to change jobs a few times because of it, but I’ve been able to make a steady living.
Depression can leave you with very little energy or volition, but very little is different from none. The worse it gets, the more you have to focus on your most critical necessities, which is not pleasant, but it can keep you going. Small victories like that can actually help counteract it. I think a lot of depression is “living to fight another day”.
If you do have depression, there are many things you can try. Therapy, medication, exercise, meditation, mindfullness, support groups, volunteering, hobbies, etc. Start by talking with a doctor.
I wish you the best!
I wish I could upvote this more than once.