Major window handling issues with Logic/ARM

We are having the exact same issue. Our plugin has 2 windows, one main and another child window. We have JUCE_MODAL_LOOPS_PERMITTED == 1
We saw thee previous post by @gphofa
We are getting random crashes in Logic native on ARM.

Any help would be appreciated.

Would this be solved if we build an AUv3?
Anyone knows how to build an AUv3 on CMAKE?