The issues with wiring, which was eventually found to be linked with software, led to billion-dollar losses.