A number of frustrated Reddit and users from the Microsoft Community forums have recently been reporting that their Surface Pro (2017) devices without a reason are randomly going to sleep or hibernate mode, even when the battery still have enough charge. Some users have even reported that this happen even when their Surface is plugged in.
Now, it appears that Microsoft has finally found the cause of this problem, and it's currently testing a solution to fix this problem, which should rollout soon.
At the Microsoft Community, BrianH from Microsoft says reveals:
7/10 Update: Wanted to provide a quick update, we believe we have identified the issue, and are currently testing a fix that will be delivered via Windows Update.
7/12 Update: Just wanted to provide additional information that this fix was not included in the 7/11 Windows update, as testing still continues. I will update this posting when the update is available, also the Surface Pro Update History page will also be updated with the details when it launches.
So, if you recently purchased a Surface Pro (2017) and it's experiencing random power issues, just be patient until Microsoft pushes the fix.