Sorry, gonna need some more info on this one. Is this your screen turining on and off on its own, or is the phone randomly powering on and off by itself?
If it is the former, then you might have a notification that causes your phone screen to flash on briefly, then turn off.
If it is the latter, then you have a rogue app that is crashing and forcing your phone to restart.