Usually the problem is the Chromecast screensaver and the fix is in this thread
If the TV is actually turning off, that’s weirder. Do you still have a Chromecast signal in the TV when this happens? Sounds like a TV issue to me, some powersaving setting?