Vehicles unfortunately have to come to a stop all the time on a highway for various reasons. This is clearly due the cars going too fast and too close from behind.
This is due to both - buggy software being tested on public roads and people going too fast and driving close behind. The first two collisions couldn't have been avoided because of how abrupt Tesla changed the lane and stopped, thats on Tesla.