fix(node): check reads during require resolution (#36461)