First i had the same problem with my MI8.
i took it back to the shop for repair several times, but the problem kept coming back.
Later i changed the mi8 for a mi9 and strange enough this phone had the same problem.
But it happened only when i was at home.
Then i changed my router and the problem...