I once posted an eleven step recovery process, be aware that during this process the COM port number can change and is quite normal so keep an eye on the port number in "Tools" every step of the way.
Nano ESP32 Bricked? - #3 by sumguy.._gaMTkyOTA4NTQzMy4xNzkxMjEwMzI1*_ga_NEXN8H46L5*czE3OTEyMTAzMjUkbzEkZzAkdDE3OTEyMTAzMjUkajYwJGwwJGg2MDQ5NDIzMjE.