When pointer stops working do the right or left clicks still function to where its only a positioning issue with the mouse moment not happening?
Also will the keyboard continue to function or is that unresponsive as well would would point out that the entire computer is freezing vs just the mouse?
System Checks to perform if the computer is also not responding to right or left clicks during this time are to see if the hard drive LED is lit with activity. Does the hard drive pass crystaldiskinfo to show that the hard drive is healthy? Does the system pass memtest86 to show the RAM is healthy after about 3 hours of it running without any errors? Is this computer clean of all malware and virus's? Have you tried using a corded mouse instead of cordless if the mouse is cordless to eliminate the possibility that its only an issue with cordless mice?
If this is a desktop computer with PS2 ports available... if it comes down to just mouse controls gone, I would find a PS2 mouse for the computer. Shut computer down and attach the PS2 mouse, boot system and see if the issue continues or if its fixed. If the problem is fixed by PS2 mouse then you know your dealing with USB mouse only problem.