Black screen after an hour or more

Why and what can I do about it? After an hour or so I often get a black screen, try and resume and the system locks up, re boot Kodi, try to either start again or resume, lock up again. I’m using a stick plugged into the tv.