• with the hint

    OPTION(MAXRECURSION 0)

    no limits for recursion.

    the problem of the recursion error should be solved ...