Text and meaning of the error
Such error can occur while running a workflow. The bot will stop and you will see a console message:
Maximum call stack exceeded.
This error most likely means that at some point your algorithm starts calling a function, which in turn calls for another fucntion and so on. This leads to the necessary branch of the condition to fail. For example, it could be a subprogram calling itself, which essentially turns the algorithm into an infinite loop.
The best thing you can do here is to divide the algorithm into smaller parts and check that the activities conditions are set correctly and that nothing turns the algorithm into an infinite loop.