Nexus 5 Windows 8.1 Connection Issue
If the same thing happens on another operating system, the problem is not the driver. It sounds like a power issue or the connector is not seating well on one of the two ends. See if a different cable helps.