And I will add the suggestion that you try a USB extension cable to raise the receiver up and away from the back of the pc.
May well indeed be a matter of quality and that the receiver is no longer up to "full strength". Just a few inches change in location may make a difference.
Also take a look in Reliability History and Event Viewer for error codes, etc. that correspond with the keyboard stoppages.
Start with Reliability History - much more user friendly and the timeline format can be very helpful.
You could also try the built in Windows Troubleshooters. The troubleshooters may find and fix something.
Likewise "sfc /scannow" and "dism"
References:
https://www.lifewire.com/how-to-use-sfc-scannow-to-repair-windows-system-files-2626161
https://www.windowscentral.com/how-use-dism-command-line-utility-repair-windows-10-image
Overall: Make a wipe and fresh OS install the very, very last resort.
And, in any case: be sure that all data is backed up at least 2 x to locations off of the computer in question before doing anything.
Verify that the data is recoverable and readable.