The best way to avoid ClickFix attacks is to be aware of them—question unexpected prompts skeptically, make sure your device is updated, and verify the legitimacy of prompts before you execute them.
When OneNote shows "Not Responding", it usually means the app is stuck during a task (syncing, loading a large notebook, ...