Ok I was having the disconnect problem with the xbox one x controller on the pc - What worked for me was in device manager I chose to show hidden devices and I saw that i had an xbox 360 wireless adaptor installed even though it was not connected, I uninstalled it and now my xbox one x controller and adaptor work fine and dont disconnect or need any kind of logoff or restart.
Hope this helps
my god after uninstalling steam, gforce exp, all 7 pages you be the last one i tried and it worked. for the last month i been looking for any fix getting the same stupid comment on this forum to change battery's and crap. and it was 360 drivers lol. THANK YOU SO MUCH!!!! hope you read this