Laptop keeps trying to suspend

Laptop kept trying to suspend and in an attempt to debug the issue

sudo systemctl mask suspend.target

Despite this, after long intervals of usage my device seems to suspend/shutdown

journalctl -f prints out the following log multiple times a second

Feb 13 21:43:39 MiWiFi-R4A-srv systemd-logind[1212]: Suspending...
Feb 13 21:43:39 MiWiFi-R4A-srv systemd-logind[1212]: Unit suspend.target is masked, refusing operation.
Feb 13 21:43:39 MiWiFi-R4A-srv systemd-logind[1212]: Failed to execute suspend operation: Permission denied

Also xorg logs using cat /home/hhn/.local/share/xorg/Xorg.0.log | grep WW, I found the following warnings

[  1578.300] (WW) Falling back to old probe method for modesetting
[  1578.300] (WW) Falling back to old probe method for fbdev
[  1578.301] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  1578.411] (WW) AMDGPU(0): Option "HotplugDriver" is not used
[  7961.761] (WW) AMDGPU(0): flip queue failed: Invalid argument
[  7961.761] (WW) AMDGPU(0): Page flip failed: Invalid argument
[  8201.057] (WW) AMDGPU(0): flip queue failed: Invalid argument
[  8201.057] (WW) AMDGPU(0): Page flip failed: Invalid argument
[  8202.005] (WW) xf86CloseConsole: KDSETMODE failed: Input/output error
[  8202.005] (WW) xf86CloseConsole: VT_GETMODE failed: Input/output error

Interestingly gnome settings also keeps crashing when I try to open it.
Output of sudo dmesg

[  831.456160] gnome-control-c[5675]: segfault at 0 ip 0000559a5b96cb8b sp 00007ffe4c441700 error 4 in gnome-control-center[559a5b91c000+148000] likely on CPU 1 (core 0, socket 0)
[  831.456172] Code: 0f 1e fa 8b 47 20 85 c0 74 05 c3 0f 1f 40 00 55 48 89 e5 53 48 89 fb 48 83 ec 08 48 8b 7f 78 e8 5b 1b fc ff 48 8b 7b 40 89 c6 <48> 8b 07 ff 90 c0 00 00 00 48 8b 53 40 48 89 df 31 c0 48 8b 5d f8

OS information

$ cat /etc/os-release
NAME="Fedora Linux"
VERSION="39 (Workstation Edition)"
ID=fedora
VERSION_ID=39
VERSION_CODENAME=""
PLATFORM_ID="platform:f39"
PRETTY_NAME="Fedora Linux 39 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:39"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f39/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=39
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=39
SUPPORT_END=2024-11-12
VARIANT="Workstation Edition"
VARIANT_ID=workstation