Daz Studio 4.10 Keeps Crashing

Daz Studio 4.10 crashes multiple times per day for me with this error:
DAZStudio.exe caused ACCESS_VIOLATION in module "C:\Program Files\DAZ 3D\DAZStudio4\QtScript4.dll" at 0033:00000000DC34E1BC, QScriptEngine::signalHandlerException()+18380 byte(s)
I have a long-running custom script, and crash usually occurs when I stop the script or randomly thereafter.
Comments
What does the script do? Are you sure it isn't trying to access an object that may have been deleted, due to a lack of error trapping?
The script mostly modifies properties of the figures in the scene.
The crashes occur even when I have not deleted anything. Is there any workaround I can put in my script to avoid triggering his crash? It really sinks my productivity as I have to reload the scene (in addition to losing work).
Go through and make sure that the script is checking the validity of everything, not assuming it's got a usable return.