If it only happens in games, and not other things using sound on the computer, I would be checking the settings for the games, or the program you are using the games through (browser, steam, etc.,).
All the settings for games are fine, the sound problem only arises when I use laptop speaker. If I use my earphone, it works perfectly.
Anyway, I tried to uninstall and tick delete option for the sound driver under Sound, Video and Game Controllers this time, and it worked!! However , I have to complete this step everytime before playing game otherwise the problem persists. Still prefer a permanent solution though