Problem with amd and nvidia same rig

I have a problem mining in the same pc, when i plug the two cards on my rig it runs good but after 2 minutes it crashes, i am sure is a problem with drivers because if i run in safe mode it doesn't happen. Some tutorial to make them not touch between them? im doing dual mining with the rx and zcash with the nvidia