Nobody wins when things like this happen, tax payers lose, the countries IC and military lose. But space is still a risky business, and these particular missions are not off-the-shelf tech where you can buy cheap. It often takes years if ever to recover from stumbles like this.
The question I always want the answer to is: after you made the modifications to the device you want to use, how did you test it to verify it would work? Did you test it under conditions that replicate the conditions that it will experience in its intended us? Why not?
Program managers have a tendency to think a little testing is all they need, and they also tend to give a lot of test credit to old tests and argue that the modifications were not really a change to form, fit, or function.
Now you know what I think caused the failure.