I think I've worked this out. Pure trial and error.
If I type in my password. Hit enter. Then very quickly press the onedrive icon, I have around 0.5 seconds to hit disconnect FAST. I failed a few times, but finally managed to do it. Seems now I can disconnect and reconnect.
Then to try the Mac :-(