if God created people, planets and viruses according to a purposeful plan and provided a transition for the souls of people from the earthly to a spiritual realm, then proclaiming, "I do not know all of God's plans and purposes therefore God cannot exist or else God is immoral" is a mere logical fallacy. A straw man you are flailing at God.
Such a God would be in full control of the care of the souls of all babies. And such a God could have individual plans and purposes for each baby with each baby having a different ordained lifespan and all of this could beyond the capability of your mind to comprehend. And all of this would be logically consistent.
~wobbles but doesn't fall down~