Hi,
If you reinstalled Windows and the problem persisted?
Have you tested with different internet using your phone's mobile data to see if the problem persists?
Are you using the latest versions of Windows 10 and 11?
Open the command prompt (admin) and run the commands: sfc /scannow and dism /online /cleanup-image /restorehealth, wait for the process to finish and restart the computer.
Then perform a clean boot and if you want to uninstall applications that you do not use.
Do you have any third-party antivirus installed?
Thanks