Well, when a battery (or the circuit using the battery, which also relates to the battery) is overloaded or overcharged, it generates heat. You've heard of the exploding phones and vape pens, right? Those are a result of the charger overloading the battery and causing it to explode from overheating. (though in those cases, it was also because that heat had nowhere to go - in most scenarios, this happened with additional factors, such as tucking their phone under their pillow to entrap more heat...but same concept)
Based off the lore bit, we can see that there's a limit to what the petricite can hold before failing. Ironically, there's a similar case with the phone scenario as well - most newer phones will restrict any form of use while the phone is above a certain temperature. The high heat turns off the phone. Just beyond that will come the bursting of the battery. It doesn't have to be a volatile explosion - the shell can simply crack and ooze acid out of it. This is very similar to the level exhibited in the lore bit. The girl's power was too much for the stone...but not necessarily by an explosive amount.
A being like Xerath however...it'd probably end up like the exploding phone. Xerath's magic would apply quite a bit more pressure than the girl's and pressure is one of the key factors in how volatile the failure is.
This has been a scientific reason why chucking a rock of petricite at Xerath results in essentially a cooked grenade effect.