I’m so relieved to know that I’m not the only one in this situation, 8 months ago I was in a very nice project enjoying every single day of coding but due to some shitty and toxic wife that stressed me out so badly I simply stopped enjoying development. She didn’t have a job and wasn’t doing any significant effort to get one so all the income was on me, and I couldn’t handle all her complaints and responsibility of the project at the same time. Suddenly I burned out and I was every day wishing to not wake up anymore. I started drinking everyday and going to work with an “amazing” hangover. In the end we got a divorce and now I’m living with my parents and working remotely. I know it sounds a off-topic but what I want to say is. Check if there is any other thing on your life happening which is contributing to your burnout. I also decide after this episode that I wouldn’t get any anchors and things that might be the source of my stress for example: an expensive car or a nice house since they require you to work harder to keep it and you might not be willing to do it. I would ask myself if it is an option to downsize your lifestyle and try to get rid of excessive material things that are stressing you out. In my case this is what I did and now I have more time and space in my mind to think about changing my career or to try something new in IT since I still can’t enjoy anymore(but I’ve been failing miserably). But now I acknowledge that this will be a long process and we have to deal with failure everyday. I remember I had a friend that lost everything and he told me that the day he lost everything was the day he felt relieved. I’m not sure if this will be helpful for you but a phrase that helps me a lot is “memento mori” which means in Latin ( Remember , one day you will die). In the end nothing matters that much. I’m also reading a book “The Practicing Stoic: A Philosophical User’s Manual” which might be helpful.
Sorry for my bad English I’m not a native speaker.
Best regards,