Application breaks with no error

I’m trying to create a Next.js app, but sometimes it breaks without any warnings or information. Then I have to ask again, which costs me extra. It doesn’t seem logical to pay multiple times for the same prompts.