mine had the same problem i just bought the asrock rx 5600xt and it kept crashing on any games i played
i tried reinstalling the drivers didnt work so i decided to reinstall a new windows that definitely helped me now its not crashing on any games i throw in btw i also have a g processor r5 5600g