This error could be detected using static analysis at compile time.
Short of that, can the error message at least say "Stack Overflow"?