NVIDIA Beta driver 595.45.04 released for Linux - looks to be an exciting one
(www.gamingonlinux.com)
KDE on endeavouros works with HDR for me (latest drivers). Ubuntu is usually a few months behind on updates, but I wouldn't expect plasma 6 to crash every time when trying HDR. I hope you're able to narrow down the cause, or have a magical update that fixes it.