I'm going to guess it's a desktop so move the USB WiFi stick to a rear motherboard port. Front ports are more trouble so this may help.
Next you must use TP Link's latest driver and be sure USB Power is set to not go into power saving mode. Read how at https://www.howtogeek.com/296918/how-to-stop-windows-from-powering-off-your-usb-devices/
A while after I turn on my Windows 10 computer, I hear a noise of a device disconnecting. That is when I see that the wifi disconnects. 2 seconds after, it comes back on with no sound of a device reconnecting. This process continues and gets gradually more rapid until it just totally loses internet. usually I just restart my computer and it would be back to normal until it disconnected again. but this time, I clicked restart, and it wouldn't stop loading. so I hit the button on the computer to force it to shut down and restart, and now its stuck, unable to connect to the internet. I tried troubleshooting my wifi adapter, but it says the device is working properly. I have a TP-LINK Wireless USB Adapter that came with this computer that I just recently bought. How can I get my wifi to come back and not disconnect on and off?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic