Here is another article with a somewhat similar approach and recommendation for dealing with adversity:

5 Ways of Changing Your Thought Pattern During Hard Times
Ran D. Anbar, M.D.
Psychology Today
Nov 7, 2022

Originally Posted by article
... use of a 5-pronged approach... each strategy involves changing their thought pattern. Rather than thinking about difficult situations only in ways that cause anxiety or sadness, e.g., thinking that there is no way for things to improve, people can learn to think in ways that promote hope and resilience.
...
Practice Self-Kindness...
Keep Things In Perspective...
Find the Silver Linings...
Embrace the Challenge...
Look for an Open Door.
The article is brief, well-worth reading, and may spark new idea or two.