@asshutossh Check for memory issues, Kernal panics and or Guru meditation errors using a terminal program.
There are only 2 causes for this.
the first is the battery not charged fully or The memory is getting filled and causing a kernal panic resulting it CPU shutoff or reset.