Well, did you actually even change the board to "nano"?
If yes, then try swapping your cable for another one, it may be faulty.
The error means it can't contact with your Arduino.
I had the same error (In the sense "not in sync", the numbers and all other stuff are sometimes different)
millions of times. Mainly its due to improper "setting up" of software or hardware. Once I had even burned
my UNO's ATmega328p. But that was resp0x00, if I remember correctly.
Changed cables, both boards, no good. Error message now resp=0xe0
Read where code may be in wrong text for compiler. The project code I got from Utube. I first copied them in Libre Text. Then with the error message I wrote them out in Notepad. Finally, I copied them directly into Sketch, all to no avail.