Chosen Solution
If your power cord was not pushed all the way in it could have caused the problem. It’s also common for PS4’s to turn on and back off because of faulty connections between the APU chip and motherboard…hopefully that’s not the case with yours. If it happens again though I would send it back. Hope this helps.