Listen to criticism, extract from it anything that you think might guide you to any sort of improvement. Ignore the rest of it as if in was never uttered. Don't dwell on where it came from and never think about whether it was just or unjust. It doesn't matter.
Don't develop any emotional relationship with your bosses and your place of work. You are there only to earn money and learn things. If those two things happen everything is as good as it needs to be. Disassociate yourself from any drama even if it is about you. Value of your work is increase in your bank account balance and new things you can put in your CV. Your work has no value beyond that.
Work is not a place to make respectful friends. Especially among your superiors.