Same here. I started feeling much better only after 9-10 months off work (stay at home parent). Then returned to the same grind and one year later quit with a plan for a longer break. But after 7 months found a great matching job for me and wanted to go to work again.
After years of burnout and depression, I've just finished 6 months sabbatical and in retrospect, I think mental improvement started at ~4 months in. After 6 months I felt like I went back 5 years.