This question already has an answer here:
I have the
RTL8812AU 802.11a/b/g/n/ac WLAN Adapter and it used to not be detected. I downloaded a driver to get it working. But now I can connect to the internet with it but after about ~5 minutes it just disconnects and I have to unplug and re plug it.