“Possessed” comes mind.
Also a failure to properly apply “pain association techniques” for undesirable behaviors. Might not be effective in this case, though.
Even in the gospel times, persons who hurt themselves habitually were regarded as possessed or nuts, rather than moral failures.