For those experiencing the problem of a Windows Explorer window of OneDrive opening randomly (not the OP's specific concern, but mentioned by others here), I had the same problem.
And I found a great answer (and more complete than I'd found elsewhere) in this post...