tools: enforce `throw new Error()` with lint rule
@evanlucas left a comment on another PR pointing out that the convention in the code base is throw new Error()
over throw Error().
This PR changes the five instances of throw Error()
in the code base and enforces it with a linting rule.