Sony HU powers off/on continously

Everything works well for 10 minutes and then the head unit starts cycling off and on continuously. I can shut it off for a period of time...30 minutes or so....turn it back on and the same thing happens. Replace head unit or do you think it's a loose connection? Seems like a loose connection would be more random. It is the stock Sony CDX M60UI.

Just thought I would check on the forum before I buy another head unit.