"Say you quit to pursue a self-employment opportunity and it didn't work out."That assumes you get a chance to explain.
A lot of time your resume will just go in the trash as soon as they see a big gap in your work history.
And if you do get a chance to say you were pursuing some self-employment opportunity in the gap, that'll rarely be good enough, because what most hiring managers want to see that you kept your skills up to date in the interim and continued to do something related to your field (which people who are burnt out are unlikely to do). Otherwise you're going to fall behind... at least in the tech field.
Other things that matter are:
- how long were the gaps?
- how frequent were the gaps?
- how long did you work at each of your jobs?
If the gaps are long and/or the jobs are short, they're red flags. It doesn't mean you won't get hired, or won't get an interview, but every red flag lowers your chances.
With each gap you're digging yourself deeper and deeper in to a hole that will be progressively harder to climb out of.
My advice is to switch careers as soon as possible.. the longer you wait the harder it'll be. Your choice of alternate career doesn't have to be perfect, and it doesn't have to be "your calling" (often people don't even know their calling until they try it). It's important to try, and maybe try a whole bunch of different stuff until you find a good fit, and not to just languish and rot.
Easier said than done for someone suffering from burnout.. but that's the way out instead of sinking further in.
Of course breaks, therapy, and medication work for some, and I hope they work for you.