Hi Taylor, I have been in this issue.
I tried to optimize my scripts before, but I had to schedule a daily script batch to restart fmse service.
Had this with FMS12, was eventually found to be a script that looped very quickly testing for a result of an action that never. This was dependant on 'outside' factors and so fdifficult to isolate.
Essentially I think it just used more and more memory until it crashed.