Until AI is flying the plane and driving the truck as well as controlling the traffic, this is not something that can be prevented 100%.
Even if AI controlled all of it, AI would still be forced to occasionally make decisions based on potential outcomes with deadly consequences.