Its the RAM,if u take out one stick will still shut down randomly,its because the mobo dont like it.
This why a had replaced my hyperx rams a year ago.
You should check at the gigabites site/ https://www.gigabyte.com/Motherboard/B450-Gaming-X-rev-1x/support#support-doc
u need the second one...