I found a permanent fix for this issue.
So for everyone having similar issues, you can use a temporarily fix by using this:
Or what i found out is that my windows for some reason install my Mouse Compliant Driver and HID keyboard device twice.
After Disable both the first ones , the lag is completely gone. I guess the two drivers were interfering with eachother.
So go to device manager --> Keyboards --> uninstall first one ---> Go mouse---> Disable or Uninstall first one
(not sure if this is normal that windows installs this twice , seems like a bug to me)
At least it fixed my issues permanently now.
PS: just wanted to add this for anyone googling this issue. I dont want this to happen to anyone!
Edit: I googled a bit , seems its normal that windows installs it twice, but it fixed it for me. So...
I dont claim that this will work for you , im just trying to help.