That’s not the way an app should run unless designed to expose some files in documents.
I insist you should try to find where is the fail between your app and Monterey M1.
Also, don’t use a generic name folder as “XOJO PROGRAMS” for your app. Use one specifically tailored for that ONE app. Also don’t use spaces. Apple “likes” folders as “com.mydomainidentification.myspecificapplicationname” like “com.sorbiapps.myeisenapp”