@Diya.3rif Need to use reources and set maximum succes number (recomended).
If you work in one thread and use loop(not recomended), you can unset Reuse recources.
Since you're having alot of problems, send me a PM with your current theory on why its crashing so I can help you dive into this issue and get it fixed for you if possible!