Alienware Ryzen9 5900, RTX 3070 can't detect GPU and external monitor on Ubuntu

At first I couldn’t get to the login screen, then I found Ubuntu MATE 20.04 with RTX 3070 on Ryzen 5900 - black screen after boot and it helped a lot. Now Ubuntu is loading and I can work with the laptop screen, however, the Nvidia card is not being detected and it seems to be necessary for working with an external monitor which I need for work. I ran nvidia-bug-report and attached the logs here. Please help!

nvidia-bug-report.log (487.7 KB)