Well, I didn’t find much in your post to go on. You gave reasons that you said had nothing to do with your faith, but you didn’t respond to the OP at all.
“God has a plan for us(you/me).” “The Lord works in mysterious ways.” “Let go and let God.” These statements and many more give the believer comfort when horrible things happen: it’s all God’s mysterious plan. Many believers refer to an inner peace that comes from their faith in God; their faith then acts as a balm to a psyche that would naturally be disturbed by events around them.
People choose to adopt a certain attitude, it does not automatically insert itself into them. Some people (relious or not) handle adversity better than other people. Every day, for each one of us, is a battle. We chose to strike out in anger, or to not strike out in anger to an upsetting event. We choose to become a basket case over a trauma, or we don’t. Circumstances can be desperate, but each one of us will react in a different way. And in each of these circumstances, we are responsible for how we react—no one makes the choice for us. Even in incidents where someone believes God “helped” them handle a difficulty, they still had to be receptive to that help.
And, each of us has a set of beliefs, and a philosophy. Each one of us—no matter what our religious background. We rely on our set of beliefs and our own philosophy to get us through the tough times.
Last time I checked, religious folk hadn’t cornered the market on handling adversity well. We all handle it in our own unique way.