"In the middle of the life" is too vague and doesn't mean the same thing, correct me if I am wrong, and "at the midpoint of your life" (after 20 years if you are going to live until 40) doesn't sound very idiomatic, so how would you say it?
For example:
____, a counter appears telling you how much time you have left to live in this strange fictional world.