His constant self-flagellation over his mistakes was starting to affect his mental health.
Some religious sects practice flagellation as a form of penance.
The flagellation whip left marks on his back after the punishment.
The act of extreme flagellation was seen as a form of extreme devotion by some followers.