Screen keeps going black every few seconds

Only does it when im in the game so I don’t think it’s my xbox or tv

thats never happened to me, you sure its not on your end?