i tried
export OPENSSL_CONF=/dev/null (with normal npm start command working fine with pm2 command still throwing error)
OR
I suggest you to comment out the lines providers = provider_sectin in the file/etc/ssl/openssl.cnf it will work perfectly