Uncaught SyntaxError: Invalid regular expression: /{{2,3}[^{}]+}{2,3}/: Stack overflow

I have a page include that is loaded in a popup from a row action on three different tables on a page. Each time there is an id passed to it. It used to work well, and now I’m getting this error in the console:

Uncaught SyntaxError: Invalid regular expression: /{{2,3}[^{}]+}{2,3}/: Stack overflow
SkuidJS:2

Any ideas? At one point I got this error: http://community.skuid.com/skuid/topics/uncaught-rangeerror-maximum-call-stack-size-exceeded But that was only once. 

I should also say it works fine the first time it loads, but the second time it throws this error.