This happened to me and it's driving me crazy. I've had my computer for more than three years and this just started happening a month or so ago. I found a fix, though -- go to Device Manager, double-click on Sound, video, and game controllers. Then double-click Realtek Audio, go to Driver tab, then click Update driver. Select Browse my computer for driver software, then Let me pick from a list... When I did that, the driver that was installed on my computer when I purchase it came up (for me, release date of 2016). I re-installed that and now my volume works as before.
I think the problem is with the Realtek release 6.0.1.8678 from 4/9/19. The dates line up for me.