There is an equal and opposite positive thought. For every back there is a front, for every in there is an out, for every win there is a lose, for every day there is a night and on and on it goes. The question is, what will you focus on?
Years ago, when I worked in hotel purchasing, I had a boss who was undermining me. I was head of my department and he would come in when I was off and redirect my staff to actions I didn't approve. It was frustrating and made me feel as if I didn't dare take time off because he'd sabotage me and take my authority. Ultimately, it led to my resigning my position. I had felt pushed out, nothing positive that I could see.
Yet, this gave me much needed time to sort out what I really wanted to do and explore going back to school to embark on a new path. While I could only take 6 months off before needing to work full time again, when I did return to work, I was enrolled in school and landed an awesome job in my new field that worked with my school schedule. It all worked out and if that boss hadn't behaved as he did, I'd never have quit and found my true calling.