I had issues with a cheap Bluetooth keyboard that liked to randomly go into sleep mode. Every time it went to sleep or woke up, I'd have about 3 seconds where my controller was non-responsive

I never fixed the problem, just got around it via mouse sharing and a 2nd computer