That's BS
This is an uploading problem, not a compiler issue. So no matter the program, you will have trouble.
Did you burn the bootloader? Of do you use a programmer?
OR, and that still makes it a program error, did you connect other stuff to it now?
And about the schematic, disconnect AREF from Vcc. Connect it to a cap to GND. And now we're sprinkling caps, add one as close as possible to Vcc as well.