I have the exact same error and distribution works fine also.
Previously I had this error but it was due to Xcode 11.x is not supported any more. If you distribute you will get more details.
But this time validation fails but distribution works fine.