I had a similar experience as yours and was changed by the following simple thought. Here is a sentence out of the book Peony by Pearl S Buck, pg 170.
" It is within a man's power to choose happiness and reject sorrow."
Just a few words but when deeply understood more powerful than any monolith of philosophy.
-Viktor Frankl
It's rare that something immediately changes my outlook on life, but this quote did it. I was hesitant to read "Man's Search For Meaning" thinking it to be a pithy self-help book. I was wrong. Frankl's book helped me through what I hope to be the most difficult period of my life.