High-voltage batteries can fail and cause a fire while the vehicles are either parked or in motion, federal regulators warn.