You're right. The first rear-ending may have been unavoidable. However, you can see from the rear surveillance camera that subsequent vehicles could have stopped if everyone agreed to keep larger following distances. As mentioned elsewhere in the thread, there is the game-theoretical issue of other drivers cutting in when large gaps form so it would take some coordination on a technology / policy / cultural level to resolve the issue.
The Tesla changed lanes and instantly became a stopped object. The car that hit it did the same, and so did every subsequent car. The follow distance to avoid a collision at that point is about 10 car lengths, or roughly the average stopping distance.