Have you ever feared an exam that you were prepared for? Obviously No! Death is an exam… Life is the preparatory school to prepare you for it by throwing you a wide array of experiences you desire not for holding on to them but to use them to realize who you are and to realize all experiences are transient and hence illusions.
Now if U wasted your time and did not learn the deeper lessons start now.
When you know who you are fear of death vanishes and the ego will die successfully which means there is no need for it to come back for there are no arrears to clean up.