Laptop keeps freezing randomly

Hello,
I keep getting these random freezes that occur mostly whenever I open an application. The application just opens up with only the borders and being transparent inside and then the entire system freezes. Also, this issue only seems to be happening when Im running the laptop on battery.
Would really appreciate some help on this soon.
inxi -Fxxxz:-

System:
Kernel: 6.12.4-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
clocksource: tsc
Desktop: KDE Plasma v: 6.2.4 tk: Qt v: N/A wm: kwin_wayland vt: 1 dm: SDDM
Distro: EndeavourOS base: Arch Linux
Machine:
Type: Laptop System: LENOVO product: 82Y9 v: Legion Slim 5 16APH8
serial: Chassis: type: 10 v: Legion Slim 5 16APH8
serial:
Mobo: LENOVO model: LNVNB161216 v: SDK0T76485 WIN
serial: part-nu: LENOVO_MT_82Y9_BU_idea_FM_Legion Slim
5 16APH8 uuid: UEFI: LENOVO v: M3CN42WW
date: 01/11/2024
Battery:
ID-1: BAT1 charge: 54.7 Wh (67.9%) condition: 80.6/80.0 Wh (100.8%)
power: 61.3 W volts: 15.2 min: 15.4 model: BYD L22B4PC2 type: Li-poly
serial: status: discharging cycles: 97
CPU:
Info: 8-core model: AMD Ryzen 7 7840HS w/ Radeon 780M Graphics bits: 64
type: MT MCP smt: enabled arch: Zen 4 rev: 1 cache: L1: 512 KiB L2: 8 MiB
L3: 16 MiB
Speed (MHz): avg: 1838 min/max: 400/5137 boost: enabled cores: 1: 1838
2: 1838 3: 1838 4: 1838 5: 1838 6: 1838 7: 1838 8: 1838 9: 1838 10: 1838
11: 1838 12: 1838 13: 1838 14: 1838 15: 1838 16: 1838 bogomips: 121424
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: NVIDIA AD107M [GeForce RTX 4060 Max-Q / Mobile] vendor: Lenovo
driver: nvidia v: 565.77 arch: Lovelace pcie: speed: 16 GT/s lanes: 8 ports:
active: none empty: DP-1,HDMI-A-1,eDP-1 bus-ID: 01:00.0 chip-ID: 10de:28e0
class-ID: 0300
Device-2: Advanced Micro Devices [AMD/ATI] Phoenix1 vendor: Lenovo
driver: amdgpu v: kernel arch: RDNA-3 pcie: speed: 16 GT/s lanes: 16 ports:
active: eDP-2 empty: DP-2, DP-3, DP-4, DP-5, DP-6, DP-7, DP-8, DP-9,
Writeback-1 bus-ID: 05:00.0 chip-ID: 1002:15bf class-ID: 0300 temp: 54.0 C
Device-3: Chicony Integrated Camera driver: uvcvideo type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 bus-ID: 1-3:3 chip-ID: 04f2:b7b6 class-ID: fe01
serial:
Display: wayland server: X.org v: 1.21.1.14 with: Xwayland v: 24.1.4
compositor: kwin_wayland driver: X: loaded: amdgpu,nvidia
unloaded: modesetting alternate: fbdev,nouveau,nv,vesa dri: radeonsi
gpu: nvidia,amdgpu display-ID: 0
Monitor-1: eDP-2 res: 1707x1067 size: N/A modes: N/A
API: EGL v: 1.5 hw: drv: nvidia drv: amd radeonsi platforms: device: 0
drv: nvidia gbm: drv: nvidia surfaceless: drv: nvidia wayland: drv: radeonsi
x11: drv: radeonsi
API: OpenGL v: 4.6.0 compat-v: 4.6 vendor: amd mesa v: 24.3.1-arch1.3
glx-v: 1.4 direct-render: yes renderer: AMD Radeon 780M (radeonsi
gfx1103_r1 LLVM 18.1.8 DRM 3.59 6.12.4-arch1-1) device-ID: 1002:15bf
display-ID: :1.0
API: Vulkan v: 1.4.303 layers: 6 surfaces: xcb,xlib,wayland device: 0
type: discrete-gpu driver: N/A device-ID: 10de:28e0
Audio:
Device-1: Advanced Micro Devices [AMD/ATI] Rembrandt Radeon High Definition
Audio vendor: Lenovo driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
lanes: 16 bus-ID: 05:00.1 chip-ID: 1002:1640 class-ID: 0403
Device-2: Advanced Micro Devices [AMD] ACP/ACP3X/ACP6x Audio Coprocessor
driver: snd_pci_ps v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: 05:00.5
chip-ID: 1022:15e2 class-ID: 0480
Device-3: Advanced Micro Devices [AMD] Family 17h/19h/1ah HD Audio
vendor: Lenovo driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
lanes: 16 bus-ID: 05:00.6 chip-ID: 1022:15e3 class-ID: 0403
API: ALSA v: k6.12.4-arch1-1 status: kernel-api
Server-1: sndiod v: N/A status: off
Server-2: PipeWire v: 1.2.7 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin
Network:
Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
vendor: Lenovo driver: r8169 v: kernel pcie: speed: Unknown lanes: 63
port: 2000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp2s0 state: down mac:
Device-2: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
vendor: Lenovo driver: mt7921e v: kernel pcie: speed: 5 GT/s lanes: 1
bus-ID: 03:00.0 chip-ID: 14c3:0616 class-ID: 0280
IF: wlan0 state: up mac:
Bluetooth:
Device-1: Foxconn / Hon Hai Bluetooth 5.2 Adapter [MediaTek MT7922]
driver: btusb v: 0.8 type: USB rev: 2.1 speed: 480 Mb/s lanes: 1
bus-ID: 1-4:4 chip-ID: 0489:e0d8 class-ID: e001 serial:
Report: btmgmt ID: hci0 rfk-id: 3 state: up address: bt-v: 5.2
lmp-v: 11 class-ID: 6c010c
Drives:
Local Storage: total: 2.75 TiB used: 575 GiB (20.4%)
ID-1: /dev/nvme0n1 vendor: SK Hynix model: HFS001TEJ9X115N
size: 953.87 GiB speed: 63.2 Gb/s lanes: 4 tech: SSD serial:
fw-rev: 51020A12 temp: 44.9 C scheme: GPT
ID-2: /dev/sda vendor: Seagate model: One Touch w PW size: 1.82 TiB
type: USB rev: 3.2 spd: 5 Gb/s lanes: 1 tech: N/A serial:
fw-rev: 0004 scheme: MBR
Partition:
ID-1: / size: 920.79 GiB used: 574.61 GiB (62.4%) fs: ext4
dev: /dev/nvme0n1p2

On a sidenote, Im not sure if this is correlated, but sometimes when I lock the laptop or put it on sleep mode all I see is a black screen with my mouse being visible and it doesn’t recover either. I also seem to be getting only 1-2 hours of battery life as well.