Stoicism. Other than old works from Marcus Aurelius, Seneca, Epictetus, you can also find modern stoic practitioners, Massimo Pigliucci and Donald Robertson (there are others, but these are the best at teaching IMO). Robertsons book has additional chapter you can find somewhere online on exercises for meditation on death. But it's better to read it after https://www.amazon.co.uk/Stoicism-Art-Happiness-Teach-Yourse...