It's a known issue, https://github.com/pulumi/pulumi-azure-native/issues/1997 the team have been investigating ways to either make the TS code footprint smaller, to import less at once, or to split into multiple packages.
It's a relatively high priority work stream, just pretty tricky 😞