I intermittently have a similar problem with my Toshiba notebook. But typically, all I have to do is press the space bar, and the notebook comes out of whatever sad state it was in and takes me to the log in screen - though it may take 3 or 4 minutes to get there. Rarely, it does not come out of that state but a reboot has always worked then.
But most of the time, it boots or wakes out of sleep mode in just a few seconds as expected. I hate intermittent problems.
I have found no permanent solution.
However,
running sfc /scannow then
dism /online /cleanup-image /restorehealth/ then
sfc /scannow one more time resulted in the problem recurring 1 in every 15 or so boot/wake cycles compared to 1 in every 3 or 4.
For your PC, do you use a local account or a MS account? I have seen several users have similar problems when using a MS account. I use a local account.
Sorry I am not of more help.