If Shared With You entitlements are turned on in Xcode capabilities and then try to upload the build to the App Store, the app upload is rejected with no reasons. Removing the entitlements allows it to be uploaded.
No parts of the Shared With You entitlements were accessed in the app, only the entitlements were enabled. This has been confirmed in a simple 'Hello World' app with the same kind of App Store response, which looks like this...
1
0
743