I would fix the 013 bug first because such a bug can have all sorts of bad consequences. It's in your script. If it only happens sometimes then it's dependent on data content, prices or the like.

You can also in your screenshot see a date from 1899, so obvously something is wrong.

https://zorro-project.com/manual/en/trouble.htm

If you cannot find it, we have a script fixing service.