[TIMOB-14098] Added a check for callstack exceeded exceptions