Blue screen in win10vm

I am occasionally getting a blue screen error of either VIDEO_DXGKERNEL_FATAL_ERROR or PFN_LIST_CORRUPT in my newly installed win10 vm. I was able to reproduce this error on demand by doing a scan for hardware changes or trying to run witcher3 but now that isn’t always the case. The blue screen seems to happen whenever I do something graphics related, like a game or a benchmark, but not always.
This is on a brandnew threadripper pc with a linux host, I use kvm and libvirt/qemu to make the vm.
I did have win10vm before on my old pc that worked fine, that used the virtual i440fx chipset, this new vm uses the q35 one because I read that was better for pci-e passthrough.
I can’t help feeling that somewhere there is either a uefi setting on the host or config option in the vm xml that could sort this but I’m at the edge of my knowledge on this.

diziet