Just, decide it's not a harm. Viewing it as a harm is a matter of perspective. And you can change your perspective. As they say, if you think death is the end, it's because you think the story is about you. The idea death is a harm is a construction, so you can deconstruct it, and build some other attitude to it, if you wish.
Discussed here in relation to other cultural attitudes to death, and the harms of immortality: Is Death a Feature or a Bug?
Death is not part of life, a living person does not experience it, and a dead person experiences nothing. Discussed here: “That melancholy convention cannot be persuasive.” What does this quote mean (from the Myth of Sisyphus)?
Stoicism is not simply about stoically enduring, as the caricature frames it. It's about undertaking imaginative exercises, to change your perspective. “Study death always, so that you'll fear it never” as Seneca put it. So an example:
“Stop whatever you’re doing for a moment and ask yourself: Am I afraid
of death because I won’t be able to do this anymore?” —Marcus Aurelius
Don't just read it and nod ponderously. Actually try it. Or:
“Let us prepare our minds as if we’d come to the very end of life. Let
us postpone nothing. Let us balance life’s books each day. The one who
puts the finishing touches on their life each day is never short of
time.” —Seneca
We prepare ourselves to die well, by such activities, and if we can do that death won't be a harm.
In Buddhist thought they teach meditations on impermanence, through which we actively work, by reflecting on our lives and exeriences, to recognise it is intrinsic to the nature of becoming. All arising things will pass, is both a psychological truth, and a statement of thermodynamics that reflects our deepest insight into physics. Don't live in denial only to be surprised by the inevitable.
You might also like to reflect on the story of 'This too shall pass'. What can seem oppressive or a burden, is also liberation.
"When you've made your peace, you'll see the devils are really angels,
freeing you from the Earth."
-Meister Eckhart, though fairly
outregeously paraphrased
The thing we really fear is a meaningless life, and what we fail to reflect on is what that means, outside of rewards or consequences, that when we are gone a meaningful life has to make sense like a piece of art, or music, or dance: It just needs to have been on purpose, expressing as clearly as you could who you were. You might like this answer, on how to frame what a meaningful life is in more detail, before it's inevitable end: What are some philosophical works that explore constructing meaning in life from an agnostic or atheist view?
"Death is not extinguishing the light; it is only putting out the lamp
because the dawn has come."
-Rabindranath Tagore