Repeated flashing errors with Jetpack 4.5 and Jetpack 4.4 on Tx2

I see on this forum that someone enabled flashing with the command
sudo rm /var/lib/dpkg/lock

But this seems a very unsafe thing to do to the host machine.
ls -lh /var/lib/dpkg/lock
-rw-r----- 1 root root 0 Jul 17 09:27 /var/lib/dpkg/lock
After verifying with vim that the file was empty i went ahead and removed it. Rebooting host. Let’s see how it goes.

Rebooted, verified that the file is indeed gone
ls: cannot access ‘/var/lib/dpkg/lock’: No such file or directory
Device remains in recovery mode

But no matter how many times i say “yes”, it remains at 0%, till the next popup window