It would be ‘nice’ to say that such things are just a social dysfunction that we can safely avoid. They may not be. A lemming that follows the herd may find that it has led them off a cliff, but a lemming that doesn’t will certainly die.
We may now have better options to opt out. I’m mostly speaking to the relatively wealthy, skilled, and able. But I’m not sure. Opting out of one hysteria may also require membership in another such mass movement, complete with an obvious enemy, and a ridiculous but necessary set of rituals to convince others that we are not a threat.
I’ve believed throughout most of my life that communications and especially privacy technology would give us better options. I’m not sure it’s ending up that way. I see great technological developments in that direction, but almost all social developments in their use going the opposite way.
I think what these things come down to is each individual assessing a practical threat to themselves and reacting accordingly. I don’t generally accept explanations that assume entire populations acting wholly irrationally. It can also probably be seen as arising from material conditions such as increased resource scarcity, which is a tautological result of economic cycles, regardless of how the economists may measure their positive effect. This view requires extraordinary sociological imagination, to consider what type of situation that you could find yourself in, which would lead you to switch sides on your most ardent beliefs. That situation is therefore the threat, not the people, but it may be unavoidable. I believe that people are smart and compassionate and empathetic and do realize this, but it doesn’t affect their best option for actions, posturing, and espoused beliefs.