All games crush

Hello, i have a question about my games crushes, every tme i start some game it crush, sometimes under 5 min and sometimes i can play for 1-2 hour, few times i got some error about direct X, other time when i tried to open game nothing appeard and game started normaly, i checked my dx version in amd radeon settings and there is 9.14.10.01304 version but my dxdiag read dx 12, i tryed with some gpu burning tests, once i finished it for 1 hour, another time i started it, and it crushed under 3 mins, and every other time i tryed same happend. Do u have some solutions to solve this? and if any of u know is this problem software or hardware based?