XIAO-esp32-c3 Firmware Flashing Problem

Usually going into bootloader mode solves the problem of not being able to upload the program. Please check if the port of device manager is the same as the port selection of arduino. And check if you have correctly selected XIAO ESP32C3 as the board.