macOS executor: iOS Simulator OutOfMemory Errors — Flaky Tests

Over the last 7 to 10 days I have been seeing iOS Simulator tests marked as flaky failing my test runs. These are tests of code that have been stable throughout this period and are truly flaky in that restarting from failed result if a different set of tests failing the run.

When these tests fail, they always report (via Sentry) an error of:

The OS most likely terminated your app because it overused RAM.

Based on the report, in most cases it appears the app has not even completed launching and started executing our app code.

I have sometimes seen this is the past only to have it disappear after a few days. Is there anything I can do to diagnose the cause? Is it possible that the macOS executor is starved for resources while it is running?

All tests consistently pass when I run locally.