I don’t know much about the q directly as I don’t own one. However I found this on a search:
Pentax q10 qs1 interval shoot bugs - PentaxForums.com
It appears this has come up before. I don’t see any solutions discussed. Can you shoot several shorter intervals?
---------- Post added 07-02-22 at 10:26 AM ----------
Is it possible the sensor over heated? How long is each exposure? Can you turn down brightness and turn off distortion corrections to reduce power needs so that less heat is generated? Does that increase the number of shots you get?