I solved this problem by creating a new project and copying the files from the failing project to the new one. The app from the new project was accepted by the App Store.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags: