Crash when deploying updated flows

Everytime when i deploy my changes, my node-red crashes. It still deploys the changes.
As long as i don't depoy changes, it doesn't crash.
Following is the errors i get, i can't really understand it. Can i somehow renew the certificates or sth.?
I already updated npm, node-red, node.js

[error] Error: Already disposing
    at OPCUACertificateManager.<anonymous> (C:\Users\NAME\.node-red\node_modules\node-opcua-pki\dist\pki\certificate_manager.js:468:23)
    at Generator.next (<anonymous>)
    at C:\Users\NAME\.node-red\node_modules\node-opcua-pki\dist\pki\certificate_manager.js:31:71
    at new Promise (<anonymous>)
    at __awaiter (C:\Users\NAME\.node-red\node_modules\node-opcua-pki\dist\pki\certificate_manager.js:27:12)
    at OPCUACertificateManager.dispose (C:\Users\NAME\.node-red\node_modules\node-opcua-pki\dist\pki\certificate_manager.js:466:16)
    at OPCUACertificateManager.<anonymous> (C:\Users\NAME\.node-red\node_modules\node-opcua-certificate-manager\dist\certificate_manager.js:58:38)
    at Generator.next (<anonymous>)
    at C:\Users\NAME\.node-red\node_modules\node-opcua-certificate-manager\dist\certificate_manager.js:8:71
    at new Promise (<anonymous>)

The error is stems from the file certificate_manager.js on line 468 character 23. The code can be found here in the folder /dist/lib/pki/.

The offending function is:

verifyCertificate(certificate, ...args) {
        let options;
        let callback = undefined;
        if (args.length === 1) {
            callback = args[0];
        }
        else if (args.length === 2) { // THIS IS LINE 468
            options = args[0];
            callback = args[1];
        }
        // istanbul ignore next
        if (!callback || typeof callback !== "function")
            throw new Error("internal error");
        // Is the  signature on the SoftwareCertificate valid .?
        if (!certificate) {
            // missing certificate
            return callback(null, VerificationStatus.BadSecurityChecksFailed);
        }
        (0, util_1.callbackify)(this.verifyCertificateAsync).call(this, certificate, options || {}, callback);
    }

If the package is unneeded then running npm uninstall node-opcua-pki in your .node-red folder should remove it.

It didn't work unfortunately, so i decided to reinstall node red. Now it works totally fine although i don't know the root cause. If it happens again, i will analyse deeper.
Thanks for your comment!