I wouldn't leave... I would laugh. I would assume they were jokeing. I could not take that DM seriously
I decided a long time ago that I have no time for DMs who think embarrassing/humiliating a player is part of their game. Same goes for "let's teach the players a lesson..." DMs.