Clean the battery terminal connections.

Restack the cables "engine cable first"- then "largest to smallest".

Finish off the connection with a STAINLESS STEEL LOCKNUT. (Don't use wingnuts).

See if the problem continues.