Yes indeedy.
Lots of neurochemical imbalance in my family so I totally understand.
... and of course, this is what also happens in PTSD and also with OCD (esp. the bottom quote), and numerous other conditions. I learned some techniques years back with a professional. Positive reinforcement I guess I'd call it and relearning some ways I dealt with certain events. When you're in the grip of it though, it's not so easy to rationalize and realize that all will be a bit better one day.
We need to be kinder to ourselves and also surround ourselves with kind people. Kind and compassionate. We also need to feed ourselves well. Not just with the kindness around us, but with wholesome nutritious food and sunlight.