This is terrible and preventable, unless the child ran onto the track.
The same thing happened last year in the United States.
There can't be another one.
If I can put a guidewire in a warehouse to drive a forklift between product locations, a track can put in some kind of electronic guidance that doesn't allow the starting car to get off the safe track placement.
The gates don't get wider, so control the car, you eliminate the risk of someone being hit by the gate if people stay where they should.