This happens, when I close the lid, or press the power button, to put my laptop to sleep. It just shuts down. Sometimes it works, but I couldn't identify the circumstances.
Here is what I've tried so far:
https://appuals.com/fix-windows-10-shuts-down-instead-of-sleep/
https://www.guidingtech.com/fix-windows-10-shuts-down-instead-sleep-hibernating/
Windows 10 gets shutdown instead of going to sleep/hibernate
Computer shuts down instead of sleeping
https://lifehacker.com/why-does-my-laptop-shut-down-instead-of-going-to-sleep-1840067515
https://windowsreport.com/windows-10-turns-off-instead-sleep/
I checked the event viewer, but there were no logs about this shutdown, just an error, that it was unexpected.
Here the laptop: Dell XPS 15 9550 | Memory: 16 GB DDR4| Processor: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz[Cores 4] [Logical/Core 2] | Operating System: Microsoft Windows 10 Home
Thanks for hte help!