Can't sign out of iCloud on Catalina
I cannot sign out of icloud on my macbook pro (2016) running Catalina.
in settings -> Apple ID it asks me to update my apple ID settings,
i click continue and it says i need to sign in again as i'm already signed in,
i click continue and it asks for my password, originally i got asked for the 2fa code that appears on my other devices then i get an error message
which repeats a few times then i'm asked if i forgot my password. Change my password and repeat the whole lot again. I'm never logged out of icloud.
the password is correct as i can login to icloud with it and the subsequently changed passwords (copy & paste).
clicking signout presents me a window asking if i want to keep some icloud data locally, regardless of what i choose i never get signed out.
i have just backed the whole lot up, erased the drive, reinstalled Catalina from internet recovery, created a new admin account then used migration assistant to restore the previous accounts and i'm still unable to signout from icloud using the above.
Any suggestions?
MacBook Pro 15″, macOS 10.15