Welcome to WindowsBBS
Are you using a wireless mouse? I experienced a similar problem some time ago where the mouse froze each time I safely removed a particular USB external drive. As I recall the drive and the mouse transmitter USB connection were in the same port - separating them to different ports resolved the issue.
A USB mouse, which I always have plugged in as reserve continued to function.
Does the cursor freeze with a USB mouse - given that you are using a wireless mouse?