I guess the question is what king of query are you running that's causing it to break? How big is the resultset? I've never encountered that error in CI.
You can always try and raise the pcre.backtrack_limit and pcre.recursion_limit settings in your php.ini. If you google that error you will find info "Compilation failed: regular expression is too large"