Infinite loop error

It looks like
On begin overlap calls
Add world offset
Which in turn moves the object outside the trigger.
Which in turn calls On end overlap
Which calls Add world offset -5
Which makes it go back inside trigger.
Thus calling On begin And the process repeats indefinitely.