One can recover from burnout without leaving the job in the following ways:
Ask yourself the retrospective questions
Seek professional help
Take breaks
Learn to say no
Unlearn the idea of perfection