Help with game freezing

My PC keeps freezing out of nowhere even in light games like Doom. I’ve already used CCleaner, cleaned everything with an antivirus, removed heavy programs, animated wallpapers and still nothing. How can I optimize my Windows even more? I have 8 GB of RAM and no graphics card for now.