Over the last 4 months my Xfinity Gateway and route combo has been randomly dropping my devices. One or two at a time, i have replaced the unit already and i am still having the same issue.
Some tips for improving WiFi performance;
There are other options. Google for WiFi repeaters / range extenders, WiFi mesh systems / pods.