TL:DR; take psychedelic drugs and/or [preferably both] meditate
Hinduism and the descendants of Hinduism like Buddhism and Jainism have some interesting philosophies around death.
Also, they have interesting and practical advice for coping with life in the interim before death.
I'm not from those cultures, so I am guaranteed to misinterpret some things I learn, and some things are taken for granted by people who speak the right languages and grow up around the right ecology and etc etc, and those I'll never learn.
So this isn't somebody talking about hindu or hindu-descended philosophy. I'm just saying that the practices I have adopted as part of managing my mental health conditions [hey thanks Eastern Bros for the rad coping skills] have been effective. I accept a lot of things now that I was really angry about in the past.
But at the end of the day, emptiness and oneness are very important aspects of the reality of death. Right now I'm separate from the universe. That's dumb. Why am I even conscious to begin with. I'm comprised of abiotic materials; who authorised this sacrelige of life!? This is not a joke but it is also kind of amusing; the concept of Om resonates with me. Something like a silent vibration, the tension of reality drawn taut between the start and the end of any given moment, or any fractal branch of that moment exploding simultaneously inward and outward through time, self-repeating but any size imaginable. I dunno. Something I feel sometimes when my mind is active.
Consider also the idea that the geometries witnessed by human beings [it's me] when they take certain psychedelic substances like psilocybe mushrooms or LSD or the 2C family of research chems and sometimes mdma or any of the amphetamine family plus sleep deprivation, plus many others that I cannot personally vouch for--all these geometries [they too are fractal] might be seen because they are fundamental to the universe itself, rather than fundamental to the human mind. Why would the human mind have a propensity for fractal geometry anyway? Except that we are made of fractals--circulatory, nervous systems are examples of fractal geometry in our body.
The oldest life on the planet was fractal geometry. Fractal math describes the growth of a tree as well as it describes our circulatory system, it describes the branches of a river system and can draw maps of lifelike mountains as well as predict the size and distributions of the trees which cover the mountains.
It's also the only way to get an antenna to pick up multiple signals at once--fractal geometry. So it's essential to our smart phones. I'm not a mathematician or a musician but I am mildly autistic and I feel like maybe if you mashed up fractal math and musical resonance into a mandelbrot generator, if that's even an idea that makes sense, you'd get some very pretty pictures.
Anyway maybe my best answer is "take some LSD and meditate"