Ubuntu 21.04 cannot boot up , Black screen comes after sleep

I recently upgrade from ubuntu 20.10 to 21.04 and now I am facing issues related to boot.
The computer cannot boot up after the lock screen and it gets stuck when computer is kept without working for sometime