I have faced the same issue.
I didn't change anything just rebuilt it 2-3 times and upload success.
I am using macOS version 12.6 and I also got the new version update but I didn't update it yet.
As, my opinion Apple forcing to update latest OS and latest Xcode for upload build.
Cheers!
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags: