A character chastises themself over a perceived failure, usually in a way that is unfair or unnecessary.
References: https://dictionary.cambridge.org/dictionary/english/beat-yourself-up