The script does not crash, the client crashes and if that happens there are only a few reasons possible: running many different scripts inside the same client without restarting it for long periods of time, users running more than 1 bot in 1 client, mirror mode, users modifying the memory usage of runescape, device can't handle the client, webwalking related out of memory errors. The debug mode button was provided on the GUI in order to continue some previously started quests and will work in many cases if used properly, but you should diagnose the cause of the crash instead
Most likely corrupt gear data files, delete the OSBot folder located at C:\Users\<USER>\OSBot\ and make sure when you create gear presets you use the "Load Gear" button on the GUI, don't write data manually because any typo in there will corrupt the presets