God can transform everything, heal everything, restore everything
I came across this, recently: “I believe that God protects me from nothing and sustains me through everything."
That's well intended and better than many attempts to reconcile a good God with suffering & evil. But it's missing important nuances. Per most classic conceptions of God, there can really be no denying that God is responsible for everything. What classical theism maintains, rather, is that God is not morally culpable for anything.
So, I would qualify that, while God doesn't protect us from everything, God providentially protects us from a lot.
While many, quite innocently & thru no fault of their own, suffer a great deal more than most, we believe that the pains & sufferings of no one's earthly sojourn can even be weighed in the balance against the glories yet to be revealed, glories which no eye's seen, ear's heard or the heart of wo/man conceived.
Scott Peck said it well: Our earthly life is a cosmic boot camp where we are learning how to love. As I taught my own children & grandchildren, earth is heaven school.
My conception of the role that our earthly existence plays is that it affords us opportunities to grow from being mere friends of God to becoming lovers. It's a cosmic dance & divine romance where we can choose to grow in divine intimacy.
Life is not easy. For some it is incredibly hard. For all, though, it will have been made worth it. Why God spares some & not others from tragedies, we have no idea! To offer ideas, in my view, risks trivializing the enormity of human suffering & immensity of human pain.
So, we can say, "generally," that God is providentially optimizing the global maximization of divine intimacy, but "specifically how" remains largely a mystery. All of this is right there in the Gospels, which are reiterated in the joyful, luminous, sorrowful & glorious mysteries.
We best recall, too, Romans 8, which reminds us that, while God does not directly intend everything, God can transform everything, heal everything, restore everything, turning burdens into blessings and stumbling blocks into stepping stones. If He could not, then He wouldn't have permitted (not intended) it in the first place.