Bison supports `YYMAXDEPTH` [(docs)](https://www.gnu.org/software/bison/manual/html_node/Memory-Management.html), we should do something similar so that we can provide a better experience than a `SystemStackError` or equivalent.