Second, don't take death so seriously. Everyone will die. No big deal. You must live to the last second. Think more about the good things in life and smile more at ordinary times, so you can adjust your mentality to the best.
Third, do more meaningful things. For example, doing public welfare, there are more people in the world who are more bitter than you, and you are already very happy. Then you spend the last time of your life helping others, which is very meaningful. Even if you die, at least you have left something in this world to prove your existence.