Either a defective PSU or Motherboard or GPU card.
Looks like something is overheating and when it cools it starts to work again.
Run OCCT PSU test and see if it crashes during the test. Keep a close eye on Temperatures and Fan Speeds and especially PSU Outputs.