Toolchain errors with Pico W - Fails to build

Okay, but you can also configure TFT_eSPI via only build_flags to nudge it into using the right display controller and pins, like shown in TFT_eSPI.h Fonts? - #9 by trevor1

Can you upload the project as a whole? Makes it easier to reproduce.

Remove any non-important file if you need to while keeping the error message intact.