I'm on Xbox series X. When I play the controller disconnects for no reason, when I shake the controller it's enough to reconnect or disconnect it.
Even when changing the angle of position.
I changed the connection cable, did the updates and it's the same.
I think it comes directly from the internal connector on the controller.