Do you ever have phases of getting your shit together?

I noticed I have cycles of getting my shit together, putting a lot of intention and efforts in maintaining my home clean, better hygiene, workout 4-5 days a week... and then I get burnt out and I don't care about my health or environment, quality of work, partake in the devil's lettuce and eating bad/too much again, the dishes pile up again, etc. I find I do this at least two or three times in a year, with the "bad phases" being usually way longer than the good ones. For a while, this made me think I was bipolar, since I had phases of depression and "getting better". In the "better phases", I always feel like I finally found "the answer" to all my problems, that I was stupid before for not acting in a better way, etc. I also have history of depression and impulsivity, and the good phases are always accompanied by impulsive actions, purchases, etc.

Has anyone else felt this and if so, how do you cope/deal with these changes?