Black Screen on my Primary Display using External Monitor

Hey all,
I’m getting a black screen on my external monitor which is not 4k but the resolution is QHD (2560x1440).

I have already updated my system using
pamac update
I have also updated driver using

sudo mhwd -a pci nonfree 0300

Output of
inxi -G
is:

Graphics:  Device-1: Intel HD Graphics 630 driver: i915 v: kernel 
            Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] driver: nvidia v: 465.31 
            Device-3: Sunplus Innovation Integrated_Webcam_HD type: USB driver: uvcvideo 
            Display: x11 server: X.Org 1.20.11 driver: loaded: modesetting,nvidia resolution: 1: 1920x1080~60Hz 
            2: 2560x1440~60Hz 
            OpenGL: renderer: NVIDIA GeForce GTX 1050/PCIe/SSE2 v: 4.6.0 NVIDIA 465.31 

The stable update note says problem with 4k displays, but mine is not 4k display, what should I do?

Anyways, I tried to install 460.73 Driver from the Sourceforge link given in the announcement, and I tried following this post here

I downloaded lib32-nvidia-utils-460.73.01-1-x86_64 and nvidia-utils-460.73.01-1-x86_64 and followed the Pacman update procedure linked in the above post.
I do not know how to use dkms package, so skipped that part.

After running that in the terminal, I got this error:

sudo pacman -U /home/rohit/Documents/Nvidia/460.73/nvidia-utils-460.73.01-1-x86_64.pkg.tar.zst /home/rohit/Documents/Nvidia/460.73/lib32-nvidia-utils-460.73.01-1-x86_64.pkg.tar.zst 
[sudo] password for rohit: 
loading packages...
warning: downgrading package nvidia-utils (465.31-1 => 460.73.01-1)
warning: downgrading package lib32-nvidia-utils (465.31-1 => 460.73.01-1)
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing nvidia-utils (460.73.01-1) breaks dependency 'nvidia-utils=465.31' required by linux510-nvidia
:: installing nvidia-utils (460.73.01-1) breaks dependency 'nvidia-utils=465.31' required by linux54-nvidia

I removed linux510-nvidia and linux54-nvidia through Add/Remove software GUI, now after rebooting, I’m able to see my screen properly, but optimus manager is showing that its using Intel, I want it to use Nvidia, so when I try switching, it shows error saying drivers are not installed properly.
So I went and downloaded nvidia-460.73.01-PKGBUILDs.zip
extracted it, cd into nvidia-utils and ran the command
makepkg -si
It showed me
Unable to install module nvidia/460.73.01 for kernel 5.10.2-2-MANJARO: Missing kernel headers.
So I ran the command
sudo pacman -S $(mhwd-kernel -li | grep '*' | cut -d ' ' -f5 | awk '{print $0,"-headers"}' | sed s'/ //'g)
and tried to repeat above procedure again, but I’m getting the same error.

For entire log:

(base) [rohit@rohit-inspiron5577 nvidia-utils]$ makepkg -si
==> Making package: nvidia-utils 460.73.01-1 (Monday 28 June 2021 01:49:09 PM)
==> Checking runtime dependencies…
==> Checking buildtime dependencies…
==> Retrieving sources…
→ Downloading NVIDIA-Linux-x86_64-460.73.01-no-compat32.run…
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 127M 100 127M 0 0 5038k 0 0:00:25 0:00:25 --:–:-- 5242k
→ Found mhwd-nvidia
→ Found nvidia-utils.sysusers
→ Found 90-nvidia-utils.hook
→ Found 10-amdgpu-nvidia-drm-outputclass.conf
→ Found 10-intel-nvidia-drm-outputclass.conf
==> Validating source files with sha256sums…
NVIDIA-Linux-x86_64-460.73.01-no-compat32.run … Passed
mhwd-nvidia … Passed
nvidia-utils.sysusers … Passed
90-nvidia-utils.hook … Passed
10-amdgpu-nvidia-drm-outputclass.conf … Passed
10-intel-nvidia-drm-outputclass.conf … Passed
==> Extracting sources…
==> Starting prepare()…
Creating directory NVIDIA-Linux-x86_64-460.73.01-no-compat32
Verifying archive integrity… OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 460.73.01…
==> Entering fakeroot environment…
==> Starting package_nvidia-dkms()…
==> Tidying install…
→ Removing libtool files…
→ Purging unwanted files…
→ Removing static library files…
→ Compressing man and info pages…
==> Checking for packaging issues…
==> Creating package “nvidia-dkms”…
→ Generating .PKGINFO file…
→ Generating .BUILDINFO file…
→ Generating .MTREE file…
→ Compressing package…
==> Starting package_nvidia-utils()…
==> Tidying install…
→ Removing libtool files…
→ Purging unwanted files…
→ Removing static library files…
→ Compressing man and info pages…
==> Checking for packaging issues…
==> Creating package “nvidia-utils”…
→ Generating .PKGINFO file…
→ Generating .BUILDINFO file…
→ Adding install file…
→ Generating .MTREE file…
→ Compressing package…
==> Starting package_mhwd-nvidia()…
Failed to find the list. Using README.txt to get the list
==> Tidying install…
→ Removing libtool files…
→ Purging unwanted files…
→ Removing static library files…
→ Compressing man and info pages…
==> Checking for packaging issues…
==> Creating package “mhwd-nvidia”…
→ Generating .PKGINFO file…
→ Generating .BUILDINFO file…
→ Generating .MTREE file…
→ Compressing package…
==> Starting package_opencl-nvidia()…
==> Tidying install…
→ Removing libtool files…
→ Purging unwanted files…
→ Removing static library files…
→ Compressing man and info pages…
==> Checking for packaging issues…
==> Creating package “opencl-nvidia”…
→ Generating .PKGINFO file…
→ Generating .BUILDINFO file…
→ Generating .MTREE file…
→ Compressing package…
==> Leaving fakeroot environment.
==> Finished making: nvidia-utils 460.73.01-1 (Monday 28 June 2021 01:51:17 PM)
==> Installing nvidia-utils package group with pacman -U…
[sudo] password for rohit:
loading packages…
warning: nvidia-dkms-460.73.01-1 is up to date – reinstalling
warning: nvidia-utils-460.73.01-1 is up to date – reinstalling
warning: mhwd-nvidia-460.73.01-1 is up to date – reinstalling
warning: opencl-nvidia-460.73.01-1 is up to date – reinstalling
resolving dependencies…
looking for conflicting packages…

Packages (4) mhwd-nvidia-460.73.01-1  nvidia-dkms-460.73.01-1  nvidia-utils-460.73.01-1  opencl-nvidia-460.73.01-1

Total Installed Size:  425.14 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] y
(4/4) checking keys in keyring                                                   [##############################################] 100%
(4/4) checking package integrity                                                 [##############################################] 100%
(4/4) loading package files                                                      [##############################################] 100%
(4/4) checking for file conflicts                                                [##############################################] 100%
(4/4) checking available disk space                                              [##############################################] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> dkms remove --no-depmod -m nvidia -v 460.73.01 -k 5.10.42-1-MANJARO
==> dkms remove --no-depmod -m nvidia -v 460.73.01 -k 5.4.124-1-MANJARO
==> Unable to remove module nvidia/460.73.01 for kernel 5.10.2-2-MANJARO: Not found in dkms status output.
:: Processing package changes...
(1/4) reinstalling nvidia-utils                                                  [##############################################] 100%
==> If you run into trouble with CUDA not being available, run nvidia-modprobe first.
(2/4) reinstalling nvidia-dkms                                                   [##############################################] 100%
(3/4) reinstalling mhwd-nvidia                                                   [##############################################] 100%
(4/4) reinstalling opencl-nvidia                                                 [##############################################] 100%
:: Running post-transaction hooks...
(1/5) Creating system user accounts...
(2/5) Reloading system manager configuration...
(3/5) Arming ConditionNeedsUpdate...
(4/5) Install DKMS modules
==> dkms install --no-depmod -m nvidia -v 460.73.01 -k 5.10.42-1-MANJARO
==> dkms install --no-depmod -m nvidia -v 460.73.01 -k 5.4.124-1-MANJARO
==> depmod 5.4.124-1-MANJARO
==> depmod 5.10.42-1-MANJARO
==> Unable to install module nvidia/460.73.01 for kernel 5.10.2-2-MANJARO: Missing kernel headers.
(5/5) Updating the desktop file MIME type cache...