Its not self destruction, Its just her body is ending.
Its like how old phones can't live forever, even with the charger, or how humans die, even with medical support.
The program inside her telling her when shes going to die is like a prophet.
It doesnt cause the tragedy, it just forsees it...