I am running M1 pro Monterey 12.0.1 with magic mouse 2 and I found that a quick restart would solve the problem. I would suggest turning off the screen saver to avoid the recurring of this problem.
Topic:
App & System Services
SubTopic:
Core OS
Tags: