Hi.
See here: OneDrive Ransomware Protection kills Cryptomator - please support!
The ransomeware detection of Microsoft is just not good. I also am using OneDrive, but in my case I never had a warning at all. Some others (like you) have. Unfortunately Microsoft put the poll down that was started to vote for an option to disable this „feature“.