I’m not the person you responded to but, yes, I’m sure of it. In what sick alternate reality is an indefinite period of constant torture to be considered a reasonable sentence for anything?
What percentage of people in solitary confinement do you think this describes? In any case, it sounds like your hypothetical prisoner should be in a psych unit.