Often, looking into a completely different direction is helpful. Ask yourself what you enjoy doing, apart from programming and computers. It could be cooking, gardening, talking to people, writing, teaching, whatever. Something that is not stressful for you to do. Something your friends maybe told you at one time or the other you’re good at without having to put great effort in it. Something that doesn’t drain you if you’re doing it for extended periods of time. Often that’s where you can find what’s truly important to you and your inherent skills are. Go from there. Let yourself be inspired. Those could be technical or entirely apart from what you’re currently doing.
When you start looking into unconventional jobs, you’ll be astonished what kind of work exists within reach. It often just looks like it isn’t because you’d have to leave your comfort zone to pursue them. That’s the issue with comfort zones: even if you feel like shit, it’s a familiar feeling. As humans, we tend to go with what we know, even if it leads to constantly feeling terrible. This way, we can at least make sense of what surrounds us. Going into the unknown is scary, sometimes it feels like mortal danger.
If you can afford it, take a sabbatical to clear your head. If you have a partner, talk to them about what you’re going through.