Stack overflow compiling Noir program

I am having issues compiling a Noir circuit. I am getting error:

thread 'main' has overflowed its stack
fatal runtime error: stack overflow
[1]    59486 abort      nargo compile

Run using compiler version:

nargo version = 0.19.2
noirc version = 0.19.2+47f0130c0d154f1b70eb23f376783beb3f23ad72
(git version hash: 47f0130c0d154f1b70eb23f376783beb3f23ad72, is dirty: false)

Relevant code: here

Discussion continued on Stack overflow on program with a lot of private inputs · Issue #3525 · noir-lang/noir · GitHub.