Game crashes whenever i come out of a battle (using RTX)

This has only been happening since i starting using raytracing. Anyone got a fix?