What device was connected when the sound was too loud? Both iOS and Android have the ability to adjust volume limits to minimize this.
Have you tried Samsung Buds+ or the new Galaxy buds? They have incredible battery life and decent microphones. Unfortunately they don't fit my ears so I'm using Airpods 3.