Why does my PS4 controller keep turning off by itself?
As fun as it would be to blame the issue of your PS4 controller on gremlins, there’s a variety of problems that could be causing the disconnect. Wireless interference, bad firmware, or simple wear and tear from use are all possible culprits.
How do I stop my PS4 controller from turning off?
To set the amount of time a controller can remain unused before it automatically turns off, select (Settings) > [Power Save Settings] > [Set Time Until Controllers Turn Off]. This setting is disabled when your PS4™ system and the controller are connected with a USB cable.