This happens randomly. Your best bet is to contact apple support and ask them repair it. According to their techs, it happens sometimes if their is a failure in one of their CI pipelines, so they just need to find the failed job and hit retry. This is why sometimes it will work and sometimes not, it's random based on server failure.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags: