Thanks for sharing your experience with meditation.
The elder school of Buddhism is Theravada (or Theravāda), spelled with only one ‘e’.
Theravada meditation instructions based on the Pali Canon are freely available in Mindfulness in Plain English by Bhante Gunaratana.
I might die within five years because of AI.
I also could die for a variety of other reasons, perhaps in less than five years, five months, five weeks, five days… I might die in less than five minutes. The cause and time of death are impossible for me to know in advance.
What is certain is that I will die.
Understanding this, I will be less surprised and confused in the event that, some day, I notice that I seem to be dying.
It’s all right. Those who are born, die. Always have, always will. It’s the nature of a changing system subject to entropy. Nothing personal.
Right now, I am alive. I intend to make the most of this time and live happily. Quality is more important than quantity. If I notice that I am dying, it will be especially important to use that moment wisely, extend love to myself and everyone, and so die peacefully.