Time away only helps if burnout is project related (not existential). Switching teams/companies only helps until you find the same situation has arisen in a separate company or context. The problem wasn't them: it was you.
The cure? Figure out what actually matters to you, and learn to treat everything that's not that as a means to that end and no more.
This is far easier said than done. Therapy works wonders. Perhaps even psychedelics. The point is to try new things and be active in your own decisions. The burnout is your brain telling you that whatever it is you're currently doing isn't a sustainable solution for happiness.
(Armchair psychologist here says the author needs to start his own lab. Again: easier said than done.)