Unable to upload from Arduino 1.18.9 to Xiao ESP32C3

Same problem I am facing while uploading the code in XIAO ESP32 C3
Here is the error I received —>

esptool.py v4.6
Serial port COM23
Connecting…
Chip is ESP32-C3 (revision v0.4)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 54:32:04:89:3e:84
Uploading stub…
Running stub…
Stub running…
Changing baud rate to 921600

A fatal error occurred: No serial data received.
A fatal error occurred: No serial data received.

I was able to upload the code two to three times but after that, I was unable to upload the code.
I took a new XIAO ESP32 C3 board and tried but the same thing happened in the second board also.
If anyone has a solution regarding this, please share.