This gist explains in detail, including root cause and reproduction: https://gist.github.com/rick-boyd-hightouch/35ff96d96edd2d15c39205c4b56527e4
Basically the start/end parsing added for SQL scripting counts any `--` in the SQL text as a comment initiation, and can cause stack overflows on long lines due to recursive regex parsing per-character. There are no workarounds discovered so far, and the earlier versions of the driver (<= 2.9.2) are not available in ARM, so we are stuck...