X Window freezes when starting video playback on YouTube (Fedora 36)

When I launch a video in Firefox, the screen freezes instantly, sometimes even turning off. The most interesting thing is that the audio continues to play and the mouse cursor works. I can also use ssh to restart the computer.

❯ lspci -k | grep -i -A3 "vga"
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 24 [Radeon RX 6400/6500 XT/6500M] (rev c1)
	Subsystem: ASUSTeK Computer Inc. Device 05db
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
❯ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD Radeon RX 6500 XT (beige_goby, LLVM 14.0.0, DRM 3.49, 6.1.13-100.fc36.x86_64) (0x743f)
    Version: 22.1.7
    Accelerated: yes
    Video memory: 4096MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 3582 MB, largest block: 3582 MB
    VBO free aux. memory - total: 7911 MB, largest block: 7911 MB
    Texture free memory - total: 3582 MB, largest block: 3582 MB
    Texture free aux. memory - total: 7911 MB, largest block: 7911 MB
    Renderbuffer free memory - total: 3582 MB, largest block: 3582 MB
    Renderbuffer free aux. memory - total: 7911 MB, largest block: 7911 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 4096 MB
    Total available memory: 12057 MB
    Currently available dedicated video memory: 3582 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon RX 6500 XT (beige_goby, LLVM 14.0.0, DRM 3.49, 6.1.13-100.fc36.x86_64)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.1.7
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.1.7
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.1.7
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
GRUB_CMDLINE_LINUX="resume=UUID=97065006-b4f1-4e35-bb83-f3ac00d24d6d quiet "

I have implemented sudo grubby --update-kernel=ALL --args="radeon.cik_support=0 amdgpu.cik_support=1" previously, but, honestly, it made no changes.