Anything that is between your Xbox One controller and the console can interfere with the wireless connection's signal.
This includes any routers, computers, microwave ovens, shelves, and doors. Simply move them out of the way, and see if your Xbox One controller will connect.
Even some accessories, like keyboards, mouses, and external hard drives, connected to your Xbox One can cause interference. Disconnect them all, restart your console, and try connecting the controller again.