If you are also experiencing similar problem, here are some of the solutions to apply.

1 Xbox one s turns on then off instantly1.1 Xbox One shutdown unexpectedly1.2 Xbox one S shutting off after game loads

The first thing you have to check and make sure everything is connected properlyThen Verify that your power brick is working properly.

All Xbox One power bricks have a light on them to signify they are receiving electrical current. If you see a solid white or solid orange light, the power supply is working properly. If there is no light or it flickers, it needs to be replaced.  Install the latest Updates. Make sure you have installed all the updates for your Xbox One. We know Updating the system of your Xbox One to the latest version can resolve many issues. To do this

Press the Xbox button to open the guide.Navigate to Settings then All settings.Select System and next  Updates.For console, select Keep my console up to date; for games & apps, select Keep my games & apps up to date.

To get the update manually:

Connect your Xbox One to the Internet.Press the Xbox button to open the guide.Navigate to Settings > All settings.Select System > Updates > Update console.

Xbox One shutdown unexpectedly

If you experience Xbox One shutdown unexpectedly then check If it is overheating, If you received a message stating that your Xbox One console is getting improper ventilation, or it’s hot to the touch, follow these steps: Make sure your console is in a cool, well-ventilated place. Remove any objects on, under, or right next to the console. Also look at the light on the power brick if it’s flickering or black, then this is most likely a power issue that shut down the console unexpectedly. Reset the internal power supply

First, unplug the power cord from the back of the consolePress and hold down the power button on the device for up to 10 seconds or more.Wait a few seconds at least 10 seconds.Now plug it right back inPress the Xbox button on the console to get it up and to run.

Change the console settings so it doesn’t turn off automatically

Xbox one S shutting off after game loads

To fix this type of issue the manufacturer suggests to clear persistent storage (Blu-ray data that’s been cached on the console). Here follow the steps below to clear persistent storage.

Press the Xbox button to open the guide.Select System > Settings > Disc & Blu-ray.Select Blu-ray.Select Persistent storage.Select Clear persistent storage.Turn off and unplug your console, and then wait 5 minutes.Plug in and turn on your console, and try streaming the content again.

try a wired connection Also, Microsoft suggests trying a wired connection Because some of the wireless routers have settings that may cause your Xbox One console to shut down unexpectedly. For example, a power-saving setting or network setting may cause your console to shut down. If you use a wireless connection to connect to Xbox Live, try a wired connection. you can refer this to how to set up a wired connection on Xbox One. Some have reported that disabling automatic updates can fix this issue. Head to Settings > System > Updates and uncheck Keep my console up to date. You can uncheck Keep my games & apps up to date as well if you like. (via MakeUseOf) If none of the above solutions work for you, then chances are the Xbox One S faulty, and as such, the owner must take it to a repairman or replace the unit entirely. Also read:

Can’t connect to this network error on Windows 10 version 1903Solved: Ntoskrnl.exe High CPU usage on Windows 10 Version 1903The default gateway is not available After Windows 10 1903 upgradeThe default gateway is not available After Windows 10 1903 upgrade Xbox One S turning off unexpectedly  Try These solutions - 23