Could you simply be running out of RAM? 🤔
Mouse cursor moving but system being otherwise unresponsive sounds a lot like a system that is running low on memory and is trying to move bits in and out of swap.

A memory leak in some app you are using perhaps. Or possibly some Docker image or vm hogging heaps of memory if you do stuff like that.Â