Could this be the same issue as this one: https://developer.apple.com/forums/thread/707506.
I ran into similar error running my usual fastlane build script in my local machine. Not on Xcode Cloud.
Topic:
Developer Tools & Services
SubTopic:
Xcode Cloud
Tags: