I recently installed an Archer T4E adapter in my system and have been having ping spikes of up to 3000 ms. They occur from this PC to an outside network (for instance pinging google.com) and also to the router I am directly connected to (in this case a TP-Link AC1900). These spikes do not occur on any other computer connected to the network, either wired or wireless. Additionally, these spikes only seem to occur after the computer goes to sleep and then wakes back up. A restart fixes the issue but that is an untenable solution in the long term as to play any online game spikes anywhere near this high are unacceptable. Here is a screenshot of the command line ping tool pinging my router.
The gaps between the spikes are variable, sometimes they are spaced over 20 seconds apart and sometimes they occur every 4 or so pings. I have the most recent driver installed on my system. I have also tried rolling back to a previous version of the driver but the problem persisted so I reupdated to the new driver. I downloaded it from TP-Link so it is the most recent one available, though the actual driver release date is in 2018. I have also turned off windows update's ability to upload OS updates to other computers. My windows is up to date, though it is windows N, however, this should have no difference from regular windows 10 home. I have also tried changing the power management settings of the card to not turn off when windows goes to sleep however this did not improve the issue. Also, using a wired connection removes this issue, so it is definitely a local problem specific to wifi, not network connections as a whole. Any help would be greatly appreciated, as I have searched several times for solutions to this problem and none of them have provided a fix.
Edit: forgot to mention, restarting the windows WLAN Autoconfiguration service sometimes fixes the issue, but it is not a permanent fix, nor a solution to the underlying problem. This does not always fix the issue anyway.