You usually see this error when:

If the device is completely unresponsive, you can force it into or Fastboot Mode to reset the configuration:

Once you successfully enable Tools Mode Config, follow these rules to keep it enabled:

Read more