lib: migrate errors to internal/errors
Refs: https://github.com/nodejs/node/issues/17709
cc @jasnell @joyeecheung
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
lib, test