Once again wise man Sci-fi author Robert Heinlein provides some insights that you need.

I once had a martial arts instructor who was also a professor of philosophy. One of his life lessons can be paraphrased as “Don’t let assholes influence your life.” For example, if an asshole that you have never met gets angry and calls you names, that is their problem, not yours. They don’t know you, and are not a judge of you. Forget it, you should not let this affect the rest of your day.

The meme below is similar. Don’t let stupid people goad you into doing stupid things.