It is a display related issue, but I don't know it is is due to hardware or software. Most of the information I find online seems related to a software issue back in 2021 with macOS Monterey. Some people seemed to have this particular Kernel Panic after watching HDR videos. I only performed a quick online search and skimmed some of the forum posts, but never saw any posts where the issue was claimed to have been resolved.
You neglected to post the exact model of your Mac and version of macOS being used. You can get this information by clicking the Apple menu and selecting "About This Mac".
Run the third party app EtreCheck and post the complete report here so we can examine it for possible clues.
Here are some of the threads I found....the first post I'm linking directly explains parts of the Kernel Panic error message for anyone who is interested:
https://forums.macrumors.com/threads/macbook-pro-16-max-crashing.2321721/?post=30570052#post-30570052
https://forums.macrumors.com/threads/m1-pro-and-m1-max-macbook-pro-owners-complain-of-crashes-playing-hdr-youtube-videos.2321975/
https://forums.macrumors.com/threads/14-mbp-kernel-crash.2319799/