Touchpad freezes when starting a program too soon after booting

After booting, my touchpad works perfectly. If I wait long enough before starting any program, it keeps working perfectly. Long enough means mostly I have to wait until my “awesome” window manager has loaded up and is displaying the desktop items. If I start any program with a GUI before that point, the touchpad freezes and I need to reboot (because I don’t know how to help me otherwise, except plugging a USB mouse).

This problem has been persisting a couple of months now so I’ve developed the intuition that the Mozilla programs Thunderbird and Firefox seem to be particularly prone to freezing the touchpad upon being launched. For example, I launch PyCharm, everything OK, then launch Firefox, touchpad freezes.

Here’s my inxi:

System:
  Kernel: 5.15.91-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=1602f6b9-c8d2-488d-b7b0-66aa578e69db rw quiet
    resume=UUID=d2db3f07-f2c3-4ae8-a841-76ee3c8cc518
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: awesome
    v: 4.3 vt: 7 dm: LightDM v: 1.32.0 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: Dell product: G5 5587 v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Dell model: 0M2MWX v: A00 serial: <superuser required> UEFI: Dell
    v: 1.9.0 date: 02/11/2019
Battery:
  ID-1: BAT0 charge: 22.5 Wh (92.2%) condition: 24.4/56.0 Wh (43.5%)
    volts: 17.2 min: 15.2 model: Samsung SDI DELL W7NKD8A type: Li-ion
    serial: <filter> status: charging
Memory:
  RAM: total: 15.32 GiB used: 4.33 GiB (28.2%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i7-8750H bits: 64 type: MT MCP arch: Coffee Lake
    gen: core 8 level: v3 note: check built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xF0
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 9 MiB desc: 1x9 MiB
  Speed (MHz): avg: 966 high: 1138 min/max: 800/4100 scaling:
    driver: intel_pstate governor: powersave cores: 1: 939 2: 950 3: 966 4: 1000
    5: 1001 6: 955 7: 900 8: 900 9: 906 10: 1138 11: 948 12: 991
    bogomips: 52815
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu
    fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida
    intel_pt invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor
    movbe mpx msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm
    pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand rdseed rdtscp
    rep_good sdbg sep sgx sgx_lc smap smep ss ssbd sse sse2 sse4_1 sse4_2
    ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer
    vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology
    xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS, IBPB: conditional, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Dell driver: i915
    v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports:
    active: eDP-1 empty: DP-1, DP-2, DP-3, HDMI-A-1, HDMI-A-2, HDMI-A-3
    bus-ID: 00:02.0 chip-ID: 8086:3e9b class-ID: 0300
  Device-2: NVIDIA GP106M [GeForce GTX 1060 Mobile] vendor: Dell
    driver: nvidia v: 525.85.05 alternate: nouveau,nvidia_drm non-free: 525.xx+
    status: current (as of 2022-12) arch: Pascal code: GP10x process: TSMC 16nm
    built: 2016-21 pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:1c20 class-ID: 0300
  Device-3: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo
    bus-ID: 1-5:2 chip-ID: 0c45:6a08 class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.6 compositor: Picom v: git-b700a driver:
    X: loaded: intel,nvidia dri: i965 gpu: i915 display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 2048x1152 s-dpi: 96 s-size: 542x305mm (21.34x12.01")
    s-diag: 622mm (24.49")
  Monitor-1: eDP-1 mapped: eDP1 model: AU Optronics 0x20eb built: 2016
    res: 2048x1152 hz: 60 dpi: 149 gamma: 1.2 size: 350x190mm (13.78x7.48")
    diag: 396mm (15.6") ratio: 16:9 modes: 3840x2160
  API: OpenGL Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Dell driver: snd_hda_intel
    v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
    chip-ID: 8086:a348 class-ID: 0403
  Device-2: NVIDIA GP106 High Definition Audio driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.1
    chip-ID: 10de:10f1 class-ID: 0403
  Sound API: ALSA v: k5.15.91-1-MANJARO running: yes
  Sound Interface: sndio v: N/A running: no
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.65 running: yes
Network:
  Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:a370 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Qualcomm Atheros Killer E2400 Gigabit Ethernet vendor: Dell
    driver: alx v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000
    bus-ID: 3c:00.0 chip-ID: 1969:e0a1 class-ID: 0200
  IF: enp60s0 state: down mac: <filter>
  IF-ID-1: br-5948e9e40ce8 state: down mac: <filter>
  IP v4: <filter> scope: global broadcast: <filter>
  IF-ID-2: br-8bbf486de009 state: down mac: <filter>
  IP v4: <filter> scope: global broadcast: <filter>
  IF-ID-3: docker0 state: down mac: <filter>
  Message: Output throttled. IPs: 1; Limit: 10; Override: --limit [1-x;-1
    all]
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
    driver: btusb v: 0.8 bus-ID: 1-14:4 chip-ID: 8087:0aaa class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 1.38 TiB used: 625.28 GiB (44.4%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Toshiba
    model: KXG60ZNV512G NVMe 512GB size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 10604103 temp: 41.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD10SPZX-75Z10T2
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 5400 serial: <filter> rev: 1A03 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 234.17 GiB size: 229.43 GiB (97.98%)
    used: 188.28 GiB (82.1%) fs: ext4 dev: /dev/nvme0n1p6 maj-min: 259:6
    label: N/A uuid: 1602f6b9-c8d2-488d-b7b0-66aa578e69db
  ID-2: /boot/efi raw-size: 99 MiB size: 95 MiB (95.96%)
    used: 27.5 MiB (28.9%) fs: vfat dev: /dev/nvme0n1p2 maj-min: 259:2 label: N/A
    uuid: C418-4012
  ID-3: /run/media/hentsche/DATA raw-size: 465.76 GiB
    size: 465.76 GiB (100.00%) used: 436.97 GiB (93.8%) fs: ntfs dev: /dev/sda1
    maj-min: 8:1 label: DATA uuid: 9818A53D18A51B70
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 20 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p7 maj-min: 259:7 label: N/A
    uuid: 5abf2ef8-3b13-4647-8031-5c80422b56ec
Unmounted:
  ID-1: /dev/nvme0n1p1 maj-min: 259:1 size: 499 MiB fs: ntfs label: Recovery
    uuid: A076166876163F88
  ID-2: /dev/nvme0n1p3 maj-min: 259:3 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-3: /dev/nvme0n1p4 maj-min: 259:4 size: 199.36 GiB fs: ntfs
    label: Windows OS uuid: EA981AC4981A8EE7
  ID-4: /dev/nvme0n1p5 maj-min: 259:5 size: 654 MiB fs: ntfs label: N/A
    uuid: 50E031FFE031EBBA
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-5:2 info: Microdia Integrated_Webcam_HD type: Video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 0c45:6a08 class-ID: 0e02
  Device-2: 1-9:3 info: Shenzhen Goodix Fingerprint Reader
    type: Abstract (modem),CDC-Data driver: cdc_acm interfaces: 2 rev: 2.0
    speed: 12 Mb/s power: 100mA chip-ID: 27c6:5381 class-ID: 0a00
    serial: <filter>
  Device-3: 1-14:4 info: Intel Bluetooth 9460/9560 Jefferson Peak (JfP)
    type: Bluetooth driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s
    power: 100mA chip-ID: 8087:0aaa class-ID: e001
  Hub-2: 2-0:1 info: Super-speed hub ports: 8 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 82.0 C pch: 61.0 C mobo: N/A gpu: nvidia temp: 70 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 311 Uptime: 4m wakeups: 1 Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7 Packages: pm: pacman
  pkgs: 2366 libs: 501 tools: pamac pm: flatpak pkgs: 0 Shell: Bash v: 5.1.16
  running-in: xfce4-terminal inxi: 3.3.24

How can I prevent my touchpad from freezing and, when it’s frozen, what commands could help me to explore the issue and maybe revive it?

Thank you in advance!