Energy storage charging pile terminal protection