An error occurred while uploading the sketch.

@mike12345

Are you using USB 2.0 or 3.0 ports and cables as Arduinos can be very hit and miss with USB 3.0 ?

Changing cables and ports is always a first stop in troubleshooting.