Paused by expection because of executing a node 1000 times

I have a script task in my process model which will check whether the task is accepted in the process report. If its not accepted it will execute again.If the task is accepted it will write the task owner name to DB. Once 1000 instance is done I'm getting paused by exception error.

  Discussion posts and replies are publicly visible