Is anyone else getting "The bundle version must be higher than the previously uploaded version." errors with every build that includes archiving to TestFlight?
Xcode cloud TestFlight archive failing
The Xcode Cloud build number becomes part of the final app's build number, and it sounds like you need to set Xcode Cloud to start its build numbers from a higher value so that when uploaded to the App Store, the numbers are above your build numbers prior to your using Xcode Cloud. See Setting the Next Build Number for Xcode Cloud Builds for the full details on build numbers with Xcode Cloud.