USE PLATFORMIO Arduino IDE is rubbish for larger projects. Things to try 1) move marlin to root of a Drive and rename it M 2) delete all unneeded HAL directories 3) remove unused lcd/extui directory 4) if using a 1284p based board use melzi not atmega1284p (shorter) 5) write to Microsoft and complain bitterly at their pathetic path length limitations.