When you can't escape suffering, you learn to cope with it in your mind instead of by escaping the stimulus. This allows you to adapt to a new normal and take what actions you can, optimizing for what you can control.
I see an interesting parallel with mindfulness here.