A possible solution for "error occurred while uploading the sketch" on your Arduino ATmega328P

A possible solution for "error occurred while uploading the sketch" on your Arduino ATmega328P

If you have gotten the error while trying to upload a sketch to the Arduino (using the ATmega328P microcontroller such as the Nano) from the Arduino IDE "error occurred while uploading the sketch" this video might just help you.