A check was added to the bitcoinconsensus verify_script codepath to ensure that callers only used _exposed_ interpreter flags. I think this error should be written to bitcoinconsensus_err* err and not returned by verify_script?
Backport of Bitcoin Core PR13655
https://github.com/bitcoin/bitcoin/pull/13655