I also get this error consistently on Xcode 15.4. It only happens if I add --wait. If I simply run notarize submit it successfully uploads the file.
Topic:
Code Signing
SubTopic:
Notarization