I also encountered the same error. I solved the problem by adding a new payment method in the account settings of the App Store. Maybe you can try updating the payment method. If there is a problem with the payment method, neither paid nor free apps cannot be downloaded.
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Tags: