Yeah, the social consequences when the group is participating in a lie can be excommunication.
And in some cases, excommunication is death. And that can be ok if people who also want to defect see it and choose the same eventually to turn the herd. You'd have to make that choice wisely.