Yes, I noticed some messages about resetting the counter before, but I had feeling that it is required just on newer routers with newer Xiaomi bootloader, so didn't pay much attention to it.
I added fw_setenv flag_try_sys1_failed 0 to /etc/rc.local as precaution, hopefully it will prevent this from happening again...