Cloudflare Workers will now support better NodeJS compatibility as announced here. However, the package currently relies on iron-webcrypto that uses buffer polyfill and it leads to nodejs_compat_v2 facing the issue below:
Current workaround
Replace buffer/index.js with node:buffer in the node_modules deps before the build step.