I found the solution!
If the metadata and screenshots are located in the default folders and the paths to the default folders are set in the Fastfile like I did, the upload does not work, but Fastlane does not notice this.