Your assumption that dying will be a scary, unknown experience is incorrect. You probably already know what it feels like to die. Otherwise ask someone who does (no magic required)
We have the ability to mitigate random or senseless tragedy and adversity by making something good come from it. People often don’t realize how far-reaching their legacy can be.
Our sense of purpose is not dependent on the universe having a purpose. We are adept at meaning-making and we flourish through interdependent purpose. What we do matters to others.