I had the exact same problem today on a laptop very similar to yours (Acer Nitro 5 but on Ubuntu 20.04). Some things that helped me solve my problem:
Possible solution 1
After a few hours, I noticed that my primary monitor (the laptop screen was remaining black) but my secondary monitor worked fine when I plugged it in.
I don't know if it will work, but it's a very easy check, so start here.
Possible solution 2
I suspect the problem is related to Xorg:
- In grub (when you choose which operating system to boot), choose Advanced options for Ubuntu
- From the next menu, choose the Ubuntu version that ends with (recovery mode)
- Instead of the login, you will get a menu with a purple background—choose root, which works like your terminal but with sudo privileges
- Remove the X11 configuration (it will be created on reboot):
rm /etc/X11/xorg.conf
- Reboot by typing
reboot
Possible solution 3
Type dkms status, to confirm that you have an Nvidia driver installed.
I tried toying around with different Nvidia drivers, and ended up with 515 (520 is the latest, at least for my GPU).
My output says: nvidia, 515.65.01, 5.15.0-52-generic, x86_64: installed.
Possible solution 4
This one didn't work for me, but you could try booting with a different kernel.
Plenty of people had problems with a bug in kernel 5.15.0-52-generic, your kernel.
5.15.0-48-generic might work.
As a temporary fix, you could sudo prime-select intel, which let me log in, at least.
However, my laptop ran very slow (because it wasn't using the Nvidia GPU).
To revert, sudo prime-select nvidia.
Let me know what works and what doesn't.
I'm not very good at this stuff, but I'll help in any way I can.