Ok, did some more tests: the stack in 4.62 through 4.65 was indeed (too) small.
In 4.66 and 4.67 it is larger than ever, and for example the recursive script above can achieve 52994 iterations.

So I'm considering this issue fixed. If anyone still has a reproducible problem: please start a new topic.

Ruud