Error-out on invalid quality value.