I seem to have found my problem. The CPU/GPU queue sizes and frames to present in advance settings I set in madVR were too big. I changed them back to the default and it doesn't crash anymore.
I was suspecting a memory problem, but forgot about the settings I had in madVR.
Pages 1