Hi,
We have an internal bug report for this (UE-119549), but it was backlogged since at the time it was reported (Unreal Engine 4.27) we weren’t seeing too many cases of the stub size causing issues. I’m seeing a stub size of ~35MB on our QA test project, so I imagine it’s quite hard to stay under that limit as the API has continued to grow.
I’ll reach out to the team and see if we can revisit the idea of breaking it up into smaller chunks, the stub is generated in FPyWrapperTypeRegistry::GenerateStubCodeForWrappedTypes so we’d need to look at making changes there to support this.
Best,
Cody