please tell us more about the issue, is there a time frame after which the system automatically shuts down? or its just random ,anytime with no time frame, does this happen while running a particular application?
also tell us you windows 10 os build/version .