HP Victus Laptop not showing login screen when installing Nvidia Driver 560 in Ubuntu 20

I have an HP Victus 15 Laptop running with Ubuntu 20.04.6 on dual boot. Laptop has RTX 4050 and AMD iGPU. I have installed nvidia-driver nvidia-driver-560 using sudo ubuntu-drivers autoinstall. I also did sudo apt update and sudo apt upgrade before installing. Once I reboot, the login screen is not displaying. I had to open a terminal and run the bug report. I have also checked that secure boot is disabled.

nvidia-bug-report.log.gz (341.5 KB)

When I run lshw -c display:

lshw -c display
WARNING: you should run this program as super-user.
  *-display                 
       description: VGA compatible controller
       product: NVIDIA Corporation
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: iomemory:7c0-7bf iomemory:7e0-7df irq:79 memory:fb000000-fbffffff memory:7c00000000-7dffffffff memory:7e00000000-7e01ffffff ioport:f000(size=128) memory:fc000000-fc07ffff
  *-display UNCLAIMED
       description: VGA compatible controller
       product: Advanced Micro Devices, Inc. [AMD/ATI]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:06:00.0
       version: c6
       width: 64 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list
       configuration: latency=0
       resources: iomemory:7e0-7df memory:7e10000000-7e1fffffff memory:fc200000-fc3fffff ioport:c000(size=256) memory:fc700000-fc77ffff

nvidia-smi shows that the driver was correctly installed, but it is not running an Xorg session.

+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.03              Driver Version: 560.35.03      CUDA Version: 12.6     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4050 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   45C    P3             11W /   60W |       2MiB /   6141MiB |      6%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+