Hello Gavin, I'm Johrelle a fellow Windows/Microsoft user. I'm happy to assist you.
There's a chance the USB port you're using might be malfunctioning. Try plugging the controller into a different USB port on your computer.
If it's not the USB or the USB port, try reinstalling the Xbox controller drivers. Search for "Device Manager" in the Windows search bar and open it. Expand the "Universal Serial Bus Controllers" section. Look for your Xbox controller device. It might be listed as an "Xbox Wireless Controller" or something similar. Right-click on the controller device and select "Update driver". Choose "Search automatically for updated driver software". If Windows doesn't find any updates, right-click on the controller device again and select "Uninstall device". Check the box next to "Delete the driver software for this device" and click "Uninstall". Restart your computer. Windows will automatically reinstall the driver for your Xbox controller.