Remove `error` severity elements from `checkstyle.xml` and rely on the default setting instead. Closes gh-6442