Diagnostic
Quality the battery and the charging system first
Load-test the battery and check the charging voltage at idle and with electrical loads switched on. Only continue if both are sound.
A battery that passes a load test, and charging within the general band for the system.