I can't remember the exact specifics, but Fujitsu are absolutely to blame in this. They knew about software bugs that caused these issues since 1999.
Private Eye had a great report on this whole saga: https://www.private-eye.co.uk/special-reports/justice-lost-i... (you can download the report as a PDF on that site).