castigate
/ˈka-stə-ˌgāt/
verb
to subject to severe punishment, reproof, or criticism
The judge castigated the lawyers for their lack of preparation.
noun
punishment, reproof, or criticism of oneself
… that inner voice—in women's guilt and self-castigation around selfishness today.