Ransomware is a major risk, and it keeps evolving to avoid detection from antivirus tools or operating systems.
But what if the Operating System manufacturers developed a technique where modifications to data on a disk drive exceeding x storage measurement units per time unit triggers an alarm?
Let's think of it in terms of physical warehouse.
If someone walks into your warehouse and begins to flip every box on every shelf upside down, you would not just stand by and watch it happen. You would ask what they were doing, wouldn't you?
If ransomware starts to change (encrypt and delete) gigabytes of data within minutes, would it not make sense that your operating system pauses the process, shows a popup question and asks you if process X is supposed to be doing what it is currently doing?
There are many ways to counter it. One possible approach is via smarter storage (think those dedicated datacenter storage servers) that lets the malware think they flipped the box while keeping the original safe as a previous version of the box, even if the box is a virtualized block storage instead of a file.
Another is to run your OS (and the malware) under a hypervisor, hoping the malware can't escape the virtual environment (which is more or less what gaming consoles do which varying levels of success).