Quite possibly the best two best pieces of advice I have ever received were on how to receive, and how to give, feedback.
For the former, always take critical feedback at face value, and take the time to thank them for it. Assume that their feedback is true, and ask yourself what you could or should change to address it.
Even if the answer ends up being "nothing", it is a very useful mental exercise, and chance to learn and grow.
It sounds like you learned that lesson well. :)
The second is that all feedback you give should be actionable, specific, and kind.
It is shocking how much those two small pieces of wisdom have improved my life over the years.