How to kill an erroneous process?

I have a process being launched on inserting a new record to some table. This process has an error that makes it being launched again and again (and producing this error). I've suspended the instance of this process. Then I've tried to terminate this process. But in this case I've got a message that the process produces an error and therefore cannot be terminated.....

The table now has no records so there is no reason to launch this process.

Does anybody know how to kill such a process, unconditionally?

Best regards


what I usually do is a site-property killswitch (a boolean, default to false ofc) which you check at the beginning of the process

this way I can "come' out of an infinite process