GPIO2 is connected to a resistor circuit as demonstrated in the XIAO documentation for measuring battery voltage with ESP32C3 (R13 & R12 are 220K resistors) Getting Started with Seeed Studio XIAO ESP32C3 | Seeed Studio Wiki
I have tested boards with and without battery attached, same issue.
Also, I am able to load up programs. no issue there.