I would use macOS. Definitely. M1 chip is super fast, it implements the concept of unified memory, so its 8 or 16 GB of RAM should suffice. The only issue is that BigSur is so much exposed to adware, I hope the release of Monteray will change that.
Here is another solution, in particular, on how these Cerberus ransomware: Get rid of Cerber ransomware and decrypt files with .cerber extension | Sureshot Software