Crashes in to and over 'barriers' can already happen. If you want to provide safety against that you really should have pedestrian only paths.
The way to get THAT inside of major cities involves lots of adapter IO at the edge of the city, and a much more (Azimov's) Cave of Steel like transit infrastructure inside.
The safest engineering solution is to separate heavy motorized vehicles from human scale things.