I remembered I had the similar problem, but this problem happened randomly.
My solution would be:
I disabled my Logitech mouse that should not wake up my PC when the PC is in sleep mode.
And I refreshed and saved the scrolling speed setting in KDE again. The problem most likely does not occur to me.
OK, I tracked it down to the hid_logitech_hidpp module (reloading fixes the issue too) and a kernel error message hidpp_devicenametype_get_count: received protocol error 0x07. The message leads to a wonky kernel behavior in 6.3: