Energy storage charging pile voltage protection