It matters not how someone dies, but how they live.
You can’t control how you will die but you can control how you live. Live your life in a way that would be pleasing to God.
“For David says of Him, I SAW THE LORD ALWAYS IN MY PRESENCE; FOR HE IS AT MY RIGHT HAND, SO THAT I WILL NOT BE SHAKEN. ‘THEREFORE MY HEART WAS GLAD AND MY TONGUE EXULTED; MOREOVER MY FLESH ALSO WILL LIVE IN HOPE; BECAUSE YOU WILL NOT ABANDON MY SOUL TO HADES, NOR ALLOW YOUR HOLY ONE TO UNDERGO DECAY.