Recursion calls depth limit - Error: Stack Overflow Error

Hi!

I have SDK 4.1.4 and Recently I got :

Error: Stack Overflow Error Details: Failed invoking <symbol> Stack:

The simple function (from the forum by the way) shows that max depth is about 38 calls, then app crashes (fenix 6 pro sim):

function recursive_function(lo, hi) {
  Sys.println(Lang.format("lo=$1$ hi=$2$", [ lo, hi ]));
  if (lo == hi) {
    Sys.println("end recurse!");
    return null;
  } else {
    ++lo;
    recursive_function(lo, hi);
  }
}
it prints: 
lo=0 hi=100 
lo=1 hi=100
...
lo=38 hi=100
Error: Stack Overflow Error Details: Failed invoking <symbol> Stack:
Never reached 100.

Any ideas ?