Replace a couple of batteries with a shield. Maybe even a basic one.
The main point is to protect from random collisions with players driving cars or standing on the rails.
Also, the shield is a way to drain energy from batteries faster when under attack. Punishing for standing still or using the locomotive as a meat shield with turrets.
Alternatively, it may be better to give a few free rows in the grid. (via mod settings)
2-4 should be enough.