Problem solved, I can now upload updates to my applications.
Since I couldn't remove the distribution certificate in Xcode, go to: https://developer.apple.com/account/resources/certificates
And delete the certificate, then go into Xcode and create it again and the problem is solved.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags: