I update my MADOKAs firmware using my phone and it fails.

Reboot the phone and restart the update procedure.