You can check what's causing your PC to crash by opening the reliability monitor in windows 10, Search for reliability in cortana search.