Problem uploading

I don't think this is linked to your code or the warnings.

Can you upload a very basic program, like the sketch that does nothing

void setup() {}
void loop() {}