answered 8 years ago
According to the GAP documentation this might help:
libgap.eval("SetRecursionTrapInterval(10000)");