Yeah, unfortunately, this problem started when I had an AMD GPU under Windows 10 and has persisted. I upgraded to a 3070 and have the NVIDIA overlay off and it still happens.
The only thing that fixes the problem for me is to disable "HID-compliant game controller."
It is ABUNDANTLY CLEAR that that particular driver causes problems for a lot of folks and has for years. Very frustrating.
On the other hand, the NVIDIA overlay shouldn't be causing that problem, either, and I know a lot of folks have solved their issues by disabling it.