Intermittent or erratic power is usually caused by low or bad battery, too small of wire to carry the amperage over the length of the wire, or bad power connections ...

The simplest test is to remove the unit power cable from its 1st connection in the wiring circuit and test that short power cable connected directly to the battery ...

If the issue goes away - there are issues in your power wiring circuit somewhere ...

Rickie