I've learned to recognize when I am manic so I cut out the coffee and take extra meds. I'm usually balanced out again after a good night's sleep. I can't drink energy drinks without getting manic. My mania is useful for coming up with ideas and getting stuff done. Like Greta Thunburg and her autism, my mania is my superpower. However, I'm scared to death of having suicidal depression again. I wouldn't wish that on my worst enemy.
Sounds like we've gone through some similar experience of pulling out of a spiral.
My therapist told me I should back off on caffeine but I don't want to. Haha