CMOS Checksum Error on a Monitor+Laptop Setup

I’m running EOS and have i3 as my DE. I recently got a monitor and started using it with my primary screen (laptop) using the following script.

#!/bin/bash

# Set display configuration
# xrandr --output HDMI-1-0 --primary --mode 2560x1440 --scale 1x1 --output eDP --mode 1920x1080 --left-of HDMI-1-0
# 2560x1440 --scale 1x1 1920x1080
xrandr --output HDMI-1-0 --primary --mode 2560x1440 --scale 1x1 --output eDP --mode 1920x1080 --left-of HDMI-1-0

# Get a list of active workspaces
active_workspaces=$(i3-msg -t get_workspaces | jq -r '.[] | select(.focused == false) | .name')

for workspace in $active_workspaces; do
    if [ "$workspace" -ne 10 ]; then
        i3-msg "workspace $workspace; move workspace to output HDMI-1-0"
    fi
done

Now, I notice that if my monitor is switched on and plugged in WHILE I boot EOS, it becomes extremely laggy when using the monitor display. Rebooting gives me a CMOS checksum invalid error, making me toggle secure boot to OFF from ON and causing a lot of Arch user pain. Is there any workaround/ would any more information be needed to isolate the problem here?

EDIT: I have noticed, if the monitor is OFF (powered OFF) before booting, everything works smoothly.

No expert, but have you checked if your CMOS battery needs to be replaced?

Perhaps some info about your system can help other to better help you.

This issue only arises if a specific combination of factors occurs together, so I didn’t think it was a CMOS battery issue. (This error ONLY occurs if my monitor is switched on before EOS boots).

Information about my system (Let me know if other specific information would help, sorry if it’s not there already :frowning: ):

HP Omen 15-en0xxx
AMD Ryzen 7 4800H with Radeon Graphics
NVIDIA GeForce RTX 2060  GPU
6.10.0-arch1-2