I restarted the device and I waited 60 seconds, and still getting the same error.
I re-ran the same script after it failed, and still gettting the same error.
I repeated the above steps several times, and still getting the same error.
While in this state, running any other example works. Also running the Device Manager, I am able to communicate with the camera and read the version:

The screenshot confirms that the Device state is FLASH_BOOTED.
So, there must be some conflict or bug in the implementation of OakCamera()
that is conflicting with bootloader.flash()