While sudden braking definitely contributes to it and is dangerous, this is mostly the fault of the drivers crashing into the self-driving vehicles even if they stopped without a good reason. And those vehicles are rather obvious, i.e. the driver following could have known that tailgating them at an unsafe distance is an even worse idea than with human drivers.