Indeed, but should he say his real code was one digit swap off, could you prove intent? Color matters, but you can't paint with only one
Honestly, given what I know here (a full case might be different), I would believe they did it on purpose.
Take the hypothetical as posed: duress code one digit off, entered while detained after being interrogated for hours, and repeatedly pressured to unlock. The government has to prove beyond a reasonable doubt that he knowingly triggered the wipe and did it for the purpose of impairing the seizure. Nothing about that scenario makes mistyping an unreasonable explanation unless there is more circumstantial evidence that indicates him intentionally providing the wrong PIN.
Proving that to a jury looks very hard.