CoreAudio crashing after initialising devices with different buffer sizes

We recently found out that audio buffer sizes can sometimes exceed the prepared buffer size on the iOS simulator:

I wonder whether the issue you’re seeing has a similar root cause. If so, the fix we’ve just merged for the above issue may help.

There was another similar issue reported a few weeks ago, where this area of the code was triggering ASAN errors. Again, I’m not completely sure this is related, but I’m mentioning it in case you’re able to spot any similar details.