Maybe try some visualisation. Like picturing yourself in a protective bubble every time you're around this person. Picture their "words" in writing coming towards you but physically bouncing off your bubble.
And try to not take offence when this imbecile says inappropriate things.
Water off a duck's back