Industrial locomotives are ~10MW and 12kV or similar. So the entire ..err ..drive train is probably $10M? And the regen is free? But you have to step-up and -down to the battery?
Maybe a more informed reader can.. ahem... step in and inform us?
Instead of a freight train lets consider the slightly aged (god I'm old) electric train I would once have caught when I worked in London. As you say, each set of wheels can be braked independently and they're all using regenerative electric motors, so that's maybe 40 wheel sets on the train I'm thinking of. But, traction current is supplied at only a maximum of four points on that train, I'd guess only one is actually ever in use for simplicity.
So instead of "electrical havoc" it's a pretty simple local problem for the engineers designing the train.