This part confuses me… are you building for MKR1010 Wifi or for Uno?
Those boards use different platform cores, the MKR1010 is a SAMD21 based board, the Uno is atmelavr.
I did a quick test project for Arduino UNO, and the following compiled for me with no problems, including the option lib_archive = false
So my conclusion is there is something somehow wrong with your setup. Perhaps it will help if you upgrade PlatformIO, upgrade all your platforms and frameworks, and then maybe re-create the project from scratch.
Because at the moment it looks like something is mixed up.