The vision of Lehi shows that God will not suffer his people to perish. That clearly does not exempt them from pain and suffering, or from perishing individually. It simply states that the grand design of God will not be foiled, regardless of the specifics of the individuals who make up the actions of the grand plan.