If the comment in the stackoverflow question is true,
I am getting the same error using the same esp32-c6 board and led-blink-example. I tried a lot of different things but cannot get it to work with PlatformIO
Then please file a bug with Issues · platformio/platform-espressif32 · GitHub.