One option is get a job at a company where the expectations and pace of development are so low that it simply works with your current paradigm. Think big corporation with legacy software that needs to be maintained, and the work just is t that hard. Boring? Yes. Stable? Yes. The pay can be relatively good & interaction is often at a minimum. It also doesn’t have to be a long term solution. You can take a less than exciting job while you work on yourself & well being long term (e.g. get some exercise, do some therapy, build up some savings, etc.)
This was part of my solution after burning out at a previous job.
The other part was getting more sleep and preferring to socialize with people I met independently. Sounds rude but yes that means genuinely new people. Not your family, old friends from school, coworkers, ex-coworkers, or anyone you met through any of those people. Keeping your social life fresh has huge benefits across the board really.
The slower paced job made all this much more realistic. Work-life balance is important for your mental health. I used to scoff at the idea, but I don't anymore.