in the following 2 files you can adapt the settings for how many repeats are identified as endless loop:
DocuWare.BackgroundProcessService.LongLiving.GenericProcess.x86.exe.config
DocuWare.BackgroundProcessService.LongLiving.GenericProcess.exe.config
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.