Something that helps me here is not to divert your attention on your breaks to anything that requires concentration e.g. striking up conversations with co-workers, thumbing through emails, social media etc. Doing something like a short walk or getting some water like Lindsey suggested helps your subconscious keep working at the problem while the working memory gets a break.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Something that helps me here is not to divert your attention on your breaks to anything that requires concentration e.g. striking up conversations with co-workers, thumbing through emails, social media etc. Doing something like a short walk or getting some water like Lindsey suggested helps your subconscious keep working at the problem while the working memory gets a break.