Hello,
The distance between your iPhone and computer should not exceed the Bluetooth range (usually about 30 feet or 10 meters). If your phone disconnects when you move away, it could mean the signal strength is weak.
Make sure that "Handoff" is enabled on your iPhone. Go to Settings > General > AirPlay & Handoff, and turn on Handoff. This might help maintain better communication between your iPhone and Windows PC.
Some power-saving settings or apps on your iPhone might restrict background Bluetooth activity. . Ensure that both your iPhone's Bluetooth and your Windows 10 laptop's Bluetooth are turned on and actively connected. Ensure that your iPhone's screen does not turn off completely and that no power-saving modes are affecting Bluetooth.
Sometimes, re-pairing the devices can resolve connectivity issues. Remove your iPhone from the paired devices list on your laptop, then pair them again.
If the Answer is helpful, please click "Accept Answer" and upvote it.