If the whole computer turns off, it seems more likely that your PSU's capacity is too small.
It's interesting that it seems to happen at night when unused - I had the same with a nuc and it was fixed by replacing the power supply.
It's interesting that it seems to happen at night when unused - I had the same with a nuc and it was fixed by replacing the power supply.