People won’t pat you on the back when you do your job correctly, but they will definitely remember when you mess up, no matter how rare it is.
So don’t take it personally; it’s just how things are. Learn to detach your emotions from work.
Matthew 5:44:
“But I say to you, love your enemies, bless those who curse you, do good to those who hate you, and pray for those who spitefully use you and persecute you.”