Recently I was feeling very frustrated about my work, about what I do in my life. This was lasting for about 1 month. I've noticed that in such periods I compare myself to others and intentionally think that I'm worse. Like literally the most useless person in the world. Usually I find any particular metric (even meaningless) and compare. This is very self-destructing activity.
What helps me in fight with burnout is realising what my strong sides are. I just try to do what I'm good at, and I stop comparing myself to others because of obvious evidence that I'm not. And of course I get more rest, more sleep and switch to creative hobby activities more often. Like an author, I reevaluate my goals and priorities and become in sync with my life again.