How can she be elected if she's dying/dead/locked up in prison?
She is dying, we all see that, there is no prohibition against electing a person with terminal illness. If she were elected after being convicted she could pardon herself, if she is dead her body double could be elected and has a plane crash just after the election.
All possible. However since she will not debate Monday the DNC will force her out.