If you are using Razer products and running Synapse 3, ensure it's updated, I had this happen a few days ago a bit, I dug into various log files (I'm an IT guy and know what to look for ) discovered the issue, updated and problem stopped

It also helps to ensure that your drivers & os continue to stay upto date to help these issues.
If you'd like DM me, I'll give you my discord info and help you there as it'll be easier with screen share