The motor circuit has malfunctioned due to over voltage or over current condtions.
This error can also be caused by temporary power loss during the spin cycle. If this error occurs while the washer is in high spin mode, the door will remain locked for 3 minutes, even after power interruption.
You will need to check the motor circuit.
Whirlpool Duet Washer Motor Circuit Test
If those values do not check out then replace the stator, if they do plug the motor harness back up and plug the washer back in if the error persists replace the main control board.
Washer Drive Motor Stator
Washer Electronic Control Board