Limit max nwchem errors to 3 for now since there are only 2 types of errors
supported for now.