To be called out based on criteria someone feels is necessary may be a veiled outburst.
They may be hiding their own insecurity in that judgement, wrapping it up in an “honest critique.”
It may be pangs of jealousy.
It may even have more to do with the dissatisfaction in their own life than what the you are actually doing.
It could be something they are just bitter about and need to take it out somewhere.
Listen carefully and try to recognize where the criticism is coming from.