Anyone have any advice or therapy that can help? I don't believe in afterlife, unfortunately.

It really scares me so much that I will die and not wake up anymore. That every day is numbered. It has really destroyed my care for anything motivational. What's the point of being great if you die in the end?

Everything is just a feed for the ego. I don't see any point in feeding my ego with feeling special if I can't take it into afterlife. And since afterlife is just being dead and decaying, having a "legacy" doesn't benefit me in any way. I just hate this. Has anyway had these thoughts and snapped out of it and welcomed death?