Freedom isn't free.
If OneNote freezes when typing or drawing in Windows 11, follow these instructions i.e. disable automatic hardwriting recognition, clear cache, etc.
There is a new security feature in Windows 11 to protect system files, which was quietly rolled out in the latest update.