When I downloaded an app from the App Store, the message "This Mac can't connect to iCloud because of a problem with XXX" popped up, where XXX is my Apple ID. There are two buttons: "Apple ID Preferences" and "Later".
I have chosen the former, entered my Apple ID password, and got on the Apple ID preferences page. However, I don't know what I should change there, and why this message pops up in the first place. Downloading the app worked without problems. I also verified via Finder, that I can access my iCloud drive.
What is this message telling me, and what can I do to avoid it in the future?