Brian:
Do you have any other third-party applications running in the background (e.g., security-type programs)? I use MalwareBytes on my PC (great program) but from time to time I get a compile error and the compilation aborts. This can happen even compiling when no changes to the source have been made.
After much, much trial and error, I've traced this issue to MalwareBytes' "Ransomware Protection" feature. Now, whenever a compile error of this nature occurs, I disable the "Ransomware" protection option and compiling is then error-free. Something similar on your machine might be interfering with the compile process.
(I did report this issue to MalwareBytes but apparently no action has been taken by them.)