Has to be electrical. You are going to have to check wires and voltages. Such as test the alternator. Is it charging? Maybe even just try a new battery and see if it solves the problem.
Then start seeing what is going on where when the issue occurs. Have you still got good voltage in the...