lib: replace Error.captureStackTrace by the primordials
Just replaced every Error.captureStackTrace by ErrorCaptureStackTrace in the lib/* folder For this, i just have added ErrorCaptureStackTrace in the import
const {
// [...]
ErrorCaptureStackTrace ,
} = primordials;
Of course i have removed unused import of Error