i managed to fix mine doing this.
make sure windows is fully updated (21H1)
download the latest drivers for IT administrators from intel https://downloadcenter.intel.com/download/30567/Intel-PROSet-Wireless-Software-and-Drivers-for-IT-Admins
unzip that folder somewhere
go to device manager. right click intel wireless 8265 and then uninstall device. check the box 'delete the driver software for this device'
right click and choose 'scan for hardware changes' you may have to do this a few times before the 8265 comes back.
go through the uninstall process again to check if it allows you to 'delete the driver software for this device' if it's there, delete again, otherwise cancel if its not there.
right click on intel wireless 8265 and then update driver. then 'browse my computer for driver' then select the folder of the driver you downloaded before and install.
run CMD as admin.
enter these commands followed by enter each time:
ipconfig /flushdns
inconfig /release
ipconfig /renew
netsh winsock reset
netsh int ip reset
Restart windows.