power on – Samsung Smart TV keeps turning itself off

My 2013 Samsung Smart Hub TV keeps turning off by itself every five seconds. When I turn it on, five seconds later, it turns off and then back on, only to repeat this cycle for fifty times. I checked the software update and it’s apparently up to date, I checked the cable connections and they’re secure, and I rebooted my wifi a couple times. The issue still persists and seems to go away on its own, after 10-15 mins of the on-off cycle. This is driving me insane. Can someone please help? Thanks.