Black Screen with cursor after waking up from sleep

nvidia 1050Ti
kernel 5.10
nvidia driver 460.67

sometimes i wake up my pc from sleep, i get a black screen with a cursor.
The cursor was moving fine.
I can still switch to alternate terminals with CTRL+ALT+F2,my only option is to reboot,Is there another solution?