If you run on desktop hardware you can use VM with VFIO GPU passthrough. It's much less pain in ass than reboot or work on frankenstein OS.
No, it's an incredible pain in the ass to get this working properly, when I could spend 20 seconds rebooting
It's might be hard to setup few years ago, but now it's super easy. With AMD hardware everything just work out-of-box.