It is better to die than to not side with the crowd according to Orthodox Jewish writing
https://www.sefaria.org/Eruvin.21b?lang=bi
https://web.archive.org/web/20201014005101/https://www.sefaria.org/Eruvin.21b?lang=bi
it is better that I should die my own death by thirst, rather than transgress the opinion of my colleagues
Eruvin 21b