Mismatched Samplerate error on Mac with AU plugin

When running a particular AU plugin built with JUCE I’m getting a “mismatched samplerate” error after a few seconds of lag and noise from the plugin. After switching to an ASIO device it behaves normally, but otherwise it won’t process any audio. This has been observed in GarageBand and Logic Pro. It doesn’t happen on a Windows or Linux VST3 build with the default system audio device.

Ideally this plugin runs 44100Hz audio, so maybe apple is trying to run 48000Hz by default and causing issues there?

This is an open source plugin so I’ll link it here to see the code (under the source directory):

And someone else who has seen this issue:

Thank you!