I have something very similar, usually, I have the browser brave open when it happens, but I don't need it to make it happen. Just having sway running idle will crash at some point. I had a crash where the video was frozen, but I could still hear the audio for a while until everything crashed and it just stop. I couldn't even Ctrl+alt+Number to restart a graphical session.
Oct 20 16:13:23.306977 fedora kernel: [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] *ERROR* Waiting for fences timed out!
Oct 20 16:13:23.307102 fedora kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx_0.0.0 timeout, but soft recovered
Oct 20 19:27:43.512984 fedora kernel: snd_hda_intel 0000:2b:00.1: Refused to change power state from D0 to D3hot
Oct 20 19:27:47.237949 fedora kernel: amdgpu 0000:2b:00.0: amdgpu: SMU: I'm not done with your previous command: SMN_C2PMSG_66:0x0000000D SMN_C2PMSG_82:0x00000000
Oct 20 19:27:47.238214 fedora kernel: amdgpu 0000:2b:00.0: amdgpu: Failed to retrieve enabled ppfeatures!
Oct 20 19:27:51.736959 fedora kernel: amdgpu 0000:2b:00.0: amdgpu: SMU: I'm not done with your previous command: SMN_C2PMSG_66:0x0000000D SMN_C2PMSG_82:0x00000000
Oct 20 19:27:51.737203 fedora kernel: amdgpu 0000:2b:00.0: amdgpu: Failed to retrieve enabled ppfeatures!
Oct 20 19:27:52.107653 fedora kernel: BUG: kernel NULL pointer dereference, address: 00000000000005f0
Oct 20 19:27:52.107798 fedora kernel: #PF: supervisor read access in kernel mode
Oct 20 19:27:52.117972 fedora kernel: #PF: error_code(0x0000) - not-present page
Oct 20 19:27:52.119228 fedora kernel: PGD 0 P4D 0
Oct 20 19:27:52.121115 fedora kernel: Oops: 0000 [#1] PREEMPT SMP NOPTI
Oct 20 19:27:52.121160 fedora kernel: CPU: 3 PID: 1750 Comm: sway Not tainted 5.19.16-200.fc36.x86_64 #1
Oct 20 19:27:52.121188 fedora kernel: Hardware name: Micro-Star International Co., Ltd. MS-7B87/B450M GAMING PLUS (MS-7B87), BIOS 1.F5 01/20/2022
Oct 20 19:27:52.121219 fedora kernel: RIP: 0010:dcn20_program_front_end_for_ctx+0x3f2/0xf60 [amdgpu]
Oct 20 19:27:52.121246 fedora kernel: Code: 8b 80 28 01 00 00 48 85 c0 75 d0 41 0f b6 84 24 f0 07 00 00 4d 8b b7 20 fb 00 00 89 c2 a8 01 0f 85 8a 06 00 00 49 8b 4c 24 08 <f6> 81 f0 05 00 00 08 0f 85 78 06 00 00 a8 08 0f 84 b3 00 00 00 49
Oct 20 19:27:52.121273 fedora kernel: RSP: 0018:ffffabf387df7708 EFLAGS: 00010246
Oct 20 19:27:52.121299 fedora kernel: RAX: 0000000000000000 RBX: ffff92928f310000 RCX: 0000000000000000
Oct 20 19:27:52.121325 fedora kernel: RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
Oct 20 19:27:52.121350 fedora kernel: RBP: ffffabf387df7798 R08: 0000000000000000 R09: 0000000000000000
Oct 20 19:27:52.121377 fedora kernel: R10: 0000000000000000 R11: 0000000000000000 R12: ffff9294dfe62a38
Oct 20 19:27:52.121402 fedora kernel: R13: ffff92949009d400 R14: ffff9292814a4400 R15: ffff9292990b0000
Oct 20 19:27:52.121424 fedora kernel: FS: 00007f96db382a40(0000) GS:ffff9299beac0000(0000) knlGS:0000000000000000
Oct 20 19:27:52.121457 fedora kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Oct 20 19:27:52.121485 fedora kernel: CR2: 00000000000005f0 CR3: 0000000109c26000 CR4: 0000000000350ee0
Oct 20 19:27:52.121511 fedora kernel: Call Trace:
Oct 20 19:27:52.121537 fedora kernel: <TASK>
Oct 20 19:27:52.121563 fedora kernel: ? optc1_lock+0xbf/0xd0 [amdgpu]
Oct 20 19:27:52.121594 fedora kernel: dc_commit_state+0x412/0xaf0 [amdgpu]
Oct 20 19:27:52.121620 fedora kernel: amdgpu_dm_atomic_commit_tail+0x5bf/0x2760 [amdgpu]
Oct 20 19:27:52.121648 fedora kernel: ? dcn20_fast_validate_bw+0x356/0x3f0 [amdgpu]
Oct 20 19:27:52.121674 fedora kernel: ? dcn20_validate_bandwidth_internal+0xdb/0x270 [amdgpu]
Oct 20 19:27:52.121697 fedora kernel: ? kfree+0xcc/0x2d0
Oct 20 19:27:52.121727 fedora kernel: ? dcn20_validate_bandwidth_internal+0xdb/0x270 [amdgpu]
Oct 20 19:27:52.121750 fedora kernel: ? kernel_fpu_end+0x1e/0x40
Oct 20 19:27:52.121775 fedora kernel: ? dc_fpu_end+0x49/0xc0 [amdgpu]
Oct 20 19:27:52.121801 fedora kernel: ? dcn20_validate_bandwidth+0x43/0x50 [amdgpu]
Oct 20 19:27:52.121826 fedora kernel: ? dc_validate_global_state+0x309/0x3e0 [amdgpu]
Oct 20 19:27:52.121854 fedora kernel: ? ___slab_alloc+0x32b/0x6a0
Oct 20 19:27:52.121882 fedora kernel: ? drm_atomic_helper_setup_commit+0x6c5/0x810
Oct 20 19:27:52.121909 fedora kernel: ? amdgpu_dm_atomic_check+0xeb7/0x1120 [amdgpu]
Oct 20 19:27:52.121942 fedora kernel: ? dc_fpu_end+0x49/0xc0 [amdgpu]
Oct 20 19:27:52.121972 fedora kernel: ? ttm_resource_compat+0x23/0x60 [ttm]