I googled windows 10 dropping midi connection and got a screenfull of hits, everything from it disliking certain hubs to needing to disable the USB power management features. As usual with Windows computers there appears to be no one cause and fix for similar symptoms because of the million and one different hardware configurations everyone is using.
If you're connecting through a passive or powered hub, try connecting directly to the motherboard, see if that fixes it. If you aren't, or if it doesn't, google how to disable the power management features on your computer's USB controller, which varies slightly depending on Windows version.
Hope you solve it.