This message is basically directly related to the payment method that is linked to your Apple ID. This message will appear if you have an unpaid balance on your account or the payment method itself is invalid (for any reason).
To stop these message, you will need to update your payment method. You can either provide a valid payment method or choose "none" to not associate any payment details with your Apple ID. However, you will not be able to choose "none" if there is a payment due or you have enabled Family Sharing on your device.
- Payment methods you can use with your Apple ID- Apple Support
- If your payment method is declined, or you have billing issue with a previous purchase in the iTunes Store- Apple Support
- Change or remove your Apple ID payment information- Apple Support
- Create or use your Apple ID without a payment method- Apple Support
- If you can't choose None when you edit your Apple ID payment information- Apple Support