1
If you want to stay on Windows 10 and not upgrade to Windows 11, use these steps.
Click your Start Button, then just type cmd and from the resulting list, right click Command Prompt and choose 'Run as Administrator'
Paste this command into Command Prompt and press Enter:
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v TargetReleaseversion /t REG_DWORD /d 1
Paste this command into Command Prompt and press Enter::
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v TargetReleaseversionInfo /t REG_SZ /d 22H2
Close Command Prompt
Open File Explorer, then navigate to C:\Windows\SoftwareDistribution\Download
Delete the contents of that folder, not the folder itself and restart (not shut down) your PC.
2
Then, if you ever want to upgrade to Windows 11 in the future, open the registry editor, go to KEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate and then right click and delete the TargetReleaseversion and TargetReleaseversionInfo entries.