I have already asked this question on askubuntu forums (Since I use ubuntu linux)
so I will just paste the link to the question here because I see no reason to retype it
Games freezing after some time on steam, audio works, can move coursor around - Ask Ubuntu
I think the problem is related to AMD gpu because as i mentioned in link above if i run something in nomodeset it runs fine (in nomodeset it runs on integrated intel gpu)
If someone from AMD staff or just normal people who help here would like some data from my PC to further analyse the problem feel free to ask for It
Retrieving data ...