This seems to compile successfully. Not sure if this is of value to you.
Linking .pio\build\d1_mini\firmware.elf
Building .pio\build\d1_mini\firmware.bin
Retrieving maximum program size .pio\build\d1_mini\firmware.elf
Checking size .pio\build\d1_mini\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [==== ] 37.6% (used 30824 bytes from 81920 bytes)
Flash: [=== ] 31.9% (used 333088 bytes from 1044464 bytes)
This seems to compile successfully. Not sure if this is of value to you.