Script error when running ODKAggregate on Chrome, Firefox and Mobile devices

I have experienced this issue for years and all upgrades and browser changes have not worked.
One thing I realized is that the issue only starts when there are a number of forms on the server. Seems there is a script that keeps running in the background whose execution time increases exponentially each time the amount of data/forms increase(s).
Icognito mode does not solve this.