If the cable modem is spontaneously re-booting, and there is no evidence of signal-related problems, then you should check on electrical conditions near to the cable modem. Possible causes of these problems are:
The cable modem itself is faulty.
Mains wiring to the cable modem is faulty or intermittent.
Mains spikes arising from e.g. vacuum cleaners, power tools, heating thermostats, refrigerator thermostats.
Electromagnetic Interference (EMI), e.g. mobile phone, local radio transmitter.
There are plenty of reports of mobile phones disrupting cable modems if kept too close
<snipped from a webpage public domain>