I maintain an open source library that internally uses exceptions during a recursive method call. The exception is taken back on the call stack and in some cases handled, while
No, you cant prevent it.
I recommend the change your design to use return codes/classes instead of exceptions. Exceptions is very expensive for recursive method calls.