ESP 32-c3 stability problem

You should search the internet. This link shows you how to add Serial.print() to your code...