The writer of Proverbs implies that we should learn from and even seek out the beneficial wounds from our critics. Wounds from a sincere friend are better than many kisses from an enemy. (Pv 27.6)
You can’t always know which of these types you’re dealing with, but it does help me think through my approach to anonymous criticism when I can discern their motivation.