It’s also a lesson for if you’re the other people in the room.
Someone kindly pulling OP to one side afterwards and talking about what happened, and why they might have misunderstood, might have saved them from the social isolation, rather than just ending up excluded.