There are many free online resources related to grief and loss. Here are a few helpful links:
Gottfried Leibniz coined the term "theodicy" to justify God's existence in light of the apparent imperfections of the world. Here's a brief overview from WIkipedia on what is meant by 'Theodicy'; and here are a few essential books that delve into Theodicy as is relates to the problem of suffering, grief and loss (additional titles displayed at bottom):
The Image of God: the Problem of Evil and the Problem of Mourning by Eleanor Stump (2022; ISBN: 9780192847836);
The Problem of Pain, by CS Lewis (ISBN: 978-0060652968);
Christian Faith and the Problem of Evil, by Peter Van Inwagen (ISBN: 9780802826978).
.............................................................................................................................................................................................
"With all this suffering, how could there be a God?" | Tim Keller at Columbia University: A brief YouTube video on "theodicy"
Boston College Professor of Philosophy Peter Kreeft on "God and Suffering"--a brief YouTube video
John Lennox (Oxford) explores the question, "Where is God in suffering?" | Harvard Medical School, 2014: a 1-hour YouTube video