esm: throw `ERR_REQUIRE_ESM` instead of `ERR_INTERNAL_ASSERTION`
With --experimental-detect-module
being on by default, trying to require()
a file with ESM syntax would result in an failed assertion if --experimental-require-module
was not passed. Instead of an assertion, let's throw the usual error.