Your script must be triggereing some sort of an internal erro in QlikView. It's hard to suggest what's happening without looking at your script. Some things to consider:
- Read the load log and determine what load statements were performed what where is it failing.
- Or, try debugging the script and see what statement makes it fail.