Hi, suslio
I can see why another mouse checklist felt unhelpful. Because the pointer and scrolling still work but clicking makes a window inactive, I’d first check whether an invisible window is taking the clicks. That has been identified in similar cases, though it is not yet confirmed on this PC.
Here are some suggestions you can try:
When it happens, press Alt + Tab and look for a blank or unfamiliar window. If you find one, select it and press Alt + F4, then test clicking again. In a similar case, closing the hidden window restored access.
If that helps only temporarily, try a clean boot to find what creates the window. Search for msconfig, open System Configuration, then on Services, check Hide all Microsoft services before selecting Disable all. On Startup, open Task Manager and disable enabled startup apps. Restart and test. If the problem stops, re-enable items in groups until it returns.
I wouldn’t reinstall Windows yet. A similar click-blocking issue was traced to a touchpad-related process, so identifying the interfering app or driver first is more useful than wiping the PC.