Getting cancer helped me. Though I wouldn't recommend it. As everyone has been saying focus on Sleep, Exercise, and Nutrition. In that order. Take time off, but most of all, realize that it doesn't matter. If you show up for your standup only doing 1/8th of what you were supposed to, and your scrum master is annoyed, it doesn't matter. Even if you end up getting fired, no one is going to remember in 1000 years, give yourself a break. If you're any good, finding a new job is easy, fixing your health is not.