[v4] Relational fields to large collections causes Strapi to crash - need a workaround

A description of this bug can be found on Github: https://github.com/strapi/strapi/issues/12269

I’m duplicating this issue to the forums because it seems crucial, and because I need help finding a workaround - I can’t seem to figure out where the offending queries are to be found. My team and I are to deploy our stuff in the coming weeks, but this bug makes it completely impossible. Strapi cannot be considered production ready until a fix or a workaround has been implemented.

Thanks, folks