I get the same problem on Fedora, its irritating.
And I hadn't that problem in KDE.
Invariably I miss the fact that the disk-activity light is still lit, start typing my password and then become annoyed because it only caught the last few characters. So then I have to wait AGAIN whilst it proudly announces an authentication failure and punishes me with a further delay.
I got so used to that jankiness that I didn’t notice it until I was showing someone my laptop who was interested in buying the same model.
(there are other security fixes by adopting Wayland)
I've seen this behavior with the old 'gnome-screensaver' (which I think ubuntu hasn't used for quite a while), but with the current gnome-shell lock screen it behaves properly and doesn't black out the screen when I open my laptop.
Never seen it with Arch with https://wiki.archlinux.org/index.php/Slock mind
wow, a lucky person, Ubuntu on my Desktop never wakes up :)
// p.s.: still better than macOS/Windows for development, I just don't turn it off, that's all
Bad idea, security-wise.
But if the GPU driver is broken about command committal, then there is only so much you can do short of fixing those .