A software glitch in the regenerative braking system can overcharge the battery and shut down the electric drive system while driving