accountsd process uses all CPU - AMSAccountStoreCache error the process accountsd is using more than 300 % of my CPU. The error messages in the console that appear are:

AMSAccountStoreCache: [AF547297] An ACAccountStore has no associated media type. Returning the default media type for the current process. accountStore = AMSAccountStoreCache | defaultMediaType = com.apple.AppleMediaServices.accountmediatype.itunes
&quot;Cannot check access to a private account type: com.apple.account.AppleAccount&quot;

What I already tried from other questions:

Remove Mail accounts
Remove calendar accounts
Stop Spotlight from indexing your HDD
Kill AppleSpell and delete Spelling folder

Still the same error. Any ideas? Thanks!
I also tried some things, like removing keychain with a UUID name, but that did not work. For me signing out of iCloud account solved the 300% CPU of accountsd.