Mouse sometimes freeze ~1sec when not connect to external monitor due to high Xorg CPU probably

Hi, my mouse (Logitech G903) sometimes froze around 1 second if there’s no external monitor. And I monitored the CPU usage, it seems that the usage of Xorg is relatively high while freezing. I have searched a lot about these related topics but None works for me. Any help here? Thank you!

  Host: cz Kernel: 5.17.15-1-MANJARO arch: x86_64 bits: 64 Desktop: Xfce
    v: 4.16.0 Distro: Manjaro Linux
  Type: Laptop System: Razer product: Blade 15 (2022) - RZ09-0421 v: 8.04
    serial: <superuser required>
  Mobo: Razer model: CH580 v: 4 serial: <superuser required> UEFI: Razer
    v: 1.09 date: 02/22/2022
  ID-1: BAT0 charge: 24.4 Wh (29.8%) condition: 81.9/80.2 Wh (102.1%)
    volts: 14.5 min: 15.4
  ID-2: hidpp_battery_1 charge: 77% condition: N/A
  Info: 14-core (6-mt/8-st) model: 12th Gen Intel Core i7-12800H bits: 64
    type: MST AMCP cache: L2: 11.5 MiB
  Speed (MHz): avg: 718 min/max: 400/2400:1800 cores: 1: 697 2: 568 3: 467
    4: 632 5: 767 6: 532 7: 598 8: 881 9: 1104 10: 1202 11: 568 12: 551 13: 941
    14: 811 15: 668 16: 770 17: 716 18: 761 19: 591 20: 541
  Device-1: Intel Alder Lake-P Integrated Graphics driver: i915 v: kernel
  Device-2: NVIDIA GA103M [GeForce RTX 3080 Ti Laptop GPU] driver: nvidia
    v: 515.48.07
  Device-3: IMC Networks Integrated RGB Camera type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2 driver: X:
    loaded: modesetting,nvidia gpu: i915 resolution: 2048x1152~60Hz
  Message: Unable to show GL data. Required tool glxinfo missing.
  Device-1: Intel Alder Lake PCH-P High Definition Audio
    driver: sof-audio-pci-intel-tgl
  Device-2: NVIDIA driver: N/A
  Sound Server-1: ALSA v: k5.17.15-1-MANJARO running: yes
  Sound Server-2: PipeWire v: 0.3.52 running: yes
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi
  IF: wlo1 state: up mac: 7c:21:4a:2f:d5:82
  IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A
  IF-ID-2: tun1 state: unknown speed: 10 Mbps duplex: full mac: N/A
  Device-1: Intel type: USB driver: btusb
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
  Local Storage: total: 953.87 GiB used: 349.83 GiB (36.7%)
  ID-1: /dev/nvme0n1 model: NVMe CA6-8D1024 size: 953.87 GiB
  ID-1: / size: 661.15 GiB used: 349.78 GiB (52.9%) fs: ext4
    dev: /dev/nvme0n1p5
  ID-2: /boot/efi size: 96 MiB used: 50.7 MiB (52.8%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-1: swap-1 type: file size: 256 MiB used: 111 MiB (43.4%)
    file: /var/lib/systemd-swap/swapfc/1
  System Temperatures: cpu: 47.0 C mobo: N/A
  Fan Speeds (RPM): N/A
  Processes: 531 Uptime: 1d 22h 17m Memory: 31.04 GiB used: 11.57 GiB (37.3%)
  Shell: Bash inxi: 3.3.19