Dualshock4 keeps disconnecting from Windows 10

Solution 1:

When this would happen to me, I would go into my bluetooth settings, scroll down until I see "Wireless Controller" and remove the device. I would then reconnect by holding the menu and share buttons on the DS4 controller for 10 seconds until the light starts flashing rapidly. Click "Add Bluetooth or other device" in the settings, then "Bluetooth" and your device should appear. Once connected hopefully it will not disconnect again.