The Feature of WiFi Sense feature is constantly looking for a better network to connect to.
Check that your WiFi software is out of date.
Latest update may be required for your Windows version.
Laptop Power Management can be used to turn off components in order to save energy.
Drivers of WiFi may be corrupted or out of date.
The wireless adapter is misconfigured, and the channel frequency range isn't being detected.
May be your router is damaged or distantly placed too.
Read more here:- https://www.datarecovo.com/wifi-is-disconnecting-frequently-in-windows-10/