in the following 2 files you can adapt the settings for how many repeats are identified as endless loop:
Both files can be found here: C:\Program Files\DocuWare\Background Process\Service\
You can change the value for MaximumActivityEnters.
Do not set it to high.
This option is working for On-Premises systems.