Battery becoming very hot

Good evening. Changed the VR after the issue of the battery.
I ask because the electronic regulators control the output through the case ground to the firewall. I replaced the old point type regulator with a new electronic one that was poorly grounded. I boiled the battery and blew out some bulbs. It could have been worse.