Problem Uploading to arduino nano (atmega 328p)
Looking at the error in the end about the invalid library, it seems a configuration problem and not a communication problem.

Try:


Close and reopen the Arduino IDE (and check again)
Remove the library and add it again (in the Manage library options in the menu), close/reopen the Arduino IDE (and check again)
Reinstall the Arduino IDE (and check again)