For me, the combination of COVID, a soul-sucking employer (though with a fantastic team I miss very much), and being unable to see my family on the other side of the planet for three years was too much. I'd have been fired were it not for the fantastic team. I had almost nowhere else to turn, so I finally took the (extensive) advice to see a therapist. Between therapy and psychiatry I found what was needed to get myself out of the awful job and into one I enjoy, and I can be productive again.
Once sustaining yourself is worked out and the pressure is off, you can work on the more holistic aspects.
Good luck mate! Happy to talk further in the comments if you'd like.
Context for those who haven't read OP's replies below: https://news.ycombinator.com/item?id=34520883