zlib: warn before crash on invalid internals usage
I realize this is a pretty unusual patch but it might make sense to do this given that a lot of people running into #16649 (closed) might not understand what is happening or how to fix it.
Refs: https://github.com/nodejs/node/issues/16649 Refs: https://github.com/nodejs/node/issues/14161
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
zlib