I was having the same problems with 2 routers. One a Dlink 822 and the other a Tplink C7.
We replaced the 822 with the C7 as we thought the 822 was failing. It was just past warranty when it started to disconnect, extremely slow speeds etc. Rebooting or factory resets seemed to cure the problems...