First, backup all your stuff.
Then from a CMD window run ***CHKDSK C: /f***
Then run ***SFC /scannow***
You may also need to run this ***DISM.exe /Online /Cleanup-image /Restorehealth***
Then reinstall the display driver and any other outdated drivers.
Then search for and download any W10 drivers you need and upgrade to W10. I believe you can still do it for free.
NOTE: if there are no W10 drivers for some of your devices, the W7 MAY work fine.
Since the computer came with W7, I don't think W11 will install because of hardware.
Run the update as an update, not a clean install.
If that doesn't work, you may need to do a clean install to get rid of the old registry.
You can revert back to W8. OR you can use Macrium Reflect Free to image your current system.
Reinstalling the image is painless - just make sure you create a recovery medium (USB stick).
However, If you don't want to or can't run W10, I would load W7 - IMHO, It is way better than W8.