(the arduino-builder tool mentioned in the error message is written in the Go programming language)
In that issue, they discovered the problem was caused by interference from the antivirus software ("webroot" for that user, but others might have the same sort of problem).
Try TEMPORARILY disabling your antivirus for a single compilation upload to see if the problem goes away, then turn the antivirus back on.
If the problem doesn't occur with the antivirus off you will need to adjust the settings of your antivirus to put the appropriate file, folder, or process on the "allow list" so it doesn't interfere with compilation.
Please be cautious about working without an antivirus. This is only about temporarily disabling it for a quick test. If you don't feel comfortable doing that, fine. You can try going straight to configuring the antivirus to not interfere with the Arduino software.
Verify just runs the compiler, upload calls code to talk to the device. Apparently the code that is trying to talk to the device has a problem. Show the full error messages.
My system isn't running an antivirus or firewall, given it's an isolated laptop. So I doubt the error is there, although it does upload the sketch fine when I enable one simple setting.
Uploading a Marlin sketch for a laser cutter. When I set Extruder 1 (one extruder enabled), it verifies and uploads fine. When I set Extruder 0 (no extruder) it verifies but errors on upload.
I am going to have to enable verbose mode to see what other messages I get.
I also have a linux system and anotherWin7 laptop, I will try on those as well to see if these errors come up.
Had to reset the eeprom. Yes, when extruder set to 0 the eeprom must be reset because the feedrates for 3 axis plus an extruder requires 4 values for such things as steps/mm, acceleration, etc. whereas 3 axis with no extruder only requires 3 values.
Well, having an eeprom with values for 4 steppers crashes when only 3 steppers are used.
So resetting the eeprom to factory by sending the M502 command followed by M500 command followed by choosing factory reset on the display after upload allowed rewriting the eeprom with the proper values.