See PlatformIO Registry. There is no native Windows 32-bit version of this tool in the PlatformIO registry, although it can be trivially compiled from source.
platform-espressif32 was updated to use the new Arduino-ESP32 2.0.0 framework. PlatformIO can auto-update your platforms.
Use
platform = espressif32@3.5.0
in the platformio.ini
instead of just platform = espressif32
. Does it compile?