GPU doesn't show up in nvidia-settings or in nvidia-smi

I am using Kubuntu 23.04 on my laptop and it has an Nvidia Geforce MX230 and an Integrated Mesa Intel® UHD Graphics 620.

I have installed all drivers. Running sudo ubuntu-drivers autoinstall says all All the available drivers are already installed.

Running nvidia-settings runs the app but shows no gpu. nvidia-smi returns No devices were found

The gpu does show up in lspci | grep 3D and it returns

01:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX230] (rev a1)

It also shows up when I run lshw -c video. it returns

*-display
       description: 3D controller
       product: GP108M [GeForce MX230]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:16 memory:a3000000-a3ffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:5000(size=128)

I have run the nvidia-bug-report.sh and attach the log here
nvidia-bug-report.log.gz (304.6 KB)

Other apps are not detecting and using the GPU either. Please help
Thanks in advance.

[  177.601575] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[  178.001371] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x31:0xffff:2502)
[  178.001614] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0

Looks broken or works with Windows.