Fix error message when validating number of assertions
Prevent XEE/XXE attacks. CWE-776