Cloudflare Pages build error after upgrading parcel

Running into some deployment issues with 2 of my projects after upgrading from parcel v2.0.0 to 2.2.1 (works fine with older versions):

*** Error in 'node': free(): invalid size: 0x00007f447088b8e0 ***
*** Error in 'node': free(): invalid pointer: 0x00007fa760a51e30 ***

Seems like a memory related issue? Builds work locally so it’s hard to debug any more than what’s in the cloudflare logs. Any help would be appreciated