Sometimes it requires taking a step back to move forward. Healing takes time. There’s so many odd jobs, side hustles, or simply - working a no-brainer warehouse job, for you to find yourself again.
Completely getting away from software dev will make it hard to support a family.