I had same issue, with Xcode Version 13.3.1 (13E500a), I just deleted the existing provision profile and certificate from the KeyChain, Go on Developer.Apple.Com, Selected the existing provision profile that I was using and click edit and just save did not make any changes and then download it on my machine. Then install both certificates and provision profile and it solve my problem.