Look in Advanced Power Options - ensure that the configuration settings therein are as you wish/require.
Many, many options.
Another place to look is Task Scheduler.
There may be some trigger in place that after "X" amount of time turns the laptop off.