According to the great existential psychologist Viktor Frankl, the capacity to be psychologically resilient is directly related to our willingness to take responsibility for our actions.
Exercises for resilience:
Viktor Frankl:
https://www.pursuit-of-happiness.org/history-of-happiness/viktor-frankl/