Prisoners who are either in for 10 years+ or are put into solitary confinement should be given a voluntary euthanasia option. If Chelsea Manning sincerely believes that she will not be freed, and wants to end her own life on her terms, let her.
This objectively reduces harms. You cannot sincerely tell me that people who wanted to end their suffering in the face of extreme torture or solitary confinement are "mentally ill" or acting irrationally.