Right I have reset my network settings and same problem
I have a iPhone 5s, iPhone 6 and iPhone 6s all next to my iPhone X. I can forget the network, then re attach to the 5GHZ network with all iPhones, the only one which struggles to connect and keeps failing is the iPhone X
Once connected it will drop off when not used
Rubbish