Why is my iCloud account not syncing with Windows 10?

Hello, my windows PC keeps on saying that its needs to fix the account of icloud. My mail and calendar are no longer syncing. I turned off two-factor signing in and still having this issue.
Re: Icloud not syncing on Windows 10

You now need to set an app-specific password for non Apple mail programs. Here's the how-to:

https://support.apple.com/en-ca/HT204397

Original thread: https://forums.imore.com/threads/why-is-my-icloud-account-not-syncing-with-windows-10.390978/