Gateway Timer script stopped

I have a few gateway timer scripts that run every few seconds.
After around 10-15 minutes of running, some scripts stop executing.
When restarted they continue as usual until they freeze again.
The 2 scripts affected are the ‘writetoOPC’ and ‘multistate’ scripts
See attached image below.

Any error messages on the console related to the script execution?

There are no errors appearing. The status also stays as success the whole time.

Without seeing your code, I do not know what the problem might be.

I figured out the issue. When I changed the scripts to fixed rate the freeze stopped happening.