@shaddamIV did you test your app under both x86_64 and arm64 macOS ?
I have something quite similar but it works on x86_64 (and on arm64 when using Rosetta with a x86_64 binary). However this is working on other, simpler, application so I'm not yet sure this is the same issue as you have.