I know which is the reason of the error, but actually since it is an optimization procedure with several iterations is not possible to modify the single nodes.
I just need a code to skip the error and force the program to go on because actually if just 1 iter does not work is not a problem.