RANT immediately below, POSSIBLE solution at bottom.
Sadly, not a lot. Windows 11 actively scans and checks files (against lists of unapproved files) that are uploaded and downloaded - it's abusive of Microsoft, but then that's what they do these days because nobody stops them simply doing what they want (you try not use Edge to open any help link from the settings page!) and if it thinks that files you are uploading or downloading are on that list, or similar to files on that list - it kills your wi-fi. No doubt some person on here will tell you that I'm just a conspiracy theorist, but I advise you look up similar things they did investigated using the Kinect device on X-Boxs a few years ago (https://www.extremetech.com/gaming/139706-microsofts-new-kinect-patent-goes-big-brother-will-spy-on-you-for-the-mpaa)
It detected how many people were watching a movie, and then wouldn't show the movie if it thought that more than the 'allowed' number were trying to - but didn't actively tell you that's what it was why, because doing so would have meant people would have known to unplug the Kinect.
All conspiracy theories aside, do not follow the advice on these pages from anybody with the word Microsoft next to their name... the amount of collective damage they have done to people's machines over the years is ridiculous, and they should be collectively sued for advising people to do things like reset your machine (handily also resetting everything back to the way their corporate schill masters want your machine to be, and removing any of the useful software that was produced by somebody who might possibly take some money away from Microsoft's market share no or in the future). I'm a cynical bugger I know, but I've been working with computers for over 40 years now, and I've watched the usefulness of them be filtered down to just what these corporations want you to spend your time on and little else. Shareholders rule Microsoft, there is no such thing as a customer any more... there is only cattle, and those who eat steak after they've fattened the calves.
Interesting link on topics such as UPLOAD FILTERS etc :
https://www.jipitec.eu/issues/jipitec-10-1-2019/4877This one describes a manner (at the very bottom of thread) that might help disallow Microshaft (or whomever) turning your wi-fi card off by (wrongly) invoking the power-saving functionality of it to do so when it chooses.
https://superuser.com/questions/587298/wifi-connection-drops-when-using-torrent-clientsIt's not just when you use torrent clients, which is why it may be helpful. Basically Windows 11 (or whomever) is using a facility on your wi-fi card to turn it off, but that can be disabled on a lot of cards, which will deny one way of doing this from being used.
Basics though:
1/ Open the run command
2/ Enter devmgmt.msc
3/ Find your wi-fi adapter, right click, choose Properties
4/ Look for power management
5/ Uncheck anything that says "Allow the computer to turn off this device to save power"