I can confirm to experience similar (if not the exact same) issues on an M2 when building for release, both VST3 and standalone: Issues with MidiBuffer in JUCE 7 on macOS in RELEASE build.
I can confirm to experience similar (if not the exact same) issues on an M2 when building for release, both VST3 and standalone: Issues with MidiBuffer in JUCE 7 on macOS in RELEASE build.