2016 E-golf Voltswagon with over 190,000 miles! Electrical system error why?

2016 e-golf I have with a 24kw battery consumption. It now has given me an electrical system error and weirdly I temporarily fixed the issue of charging it. It’s a pain. Can you think of what is causing the effect of the issue? The battery charges in a weird way.