ESP 32-c3 stability problem

Enable the USB CDC on Boot.

Then modify your program to use the serial print as debugging tool.

Also, if your serial print doesn’t works, why dont you use a simple program to check that?