Causality violations in simulations of large and small heavy-ion collisions