The only thing that I would consider doing is to properly inspect the female half of the connector that attaches to the bulb where you are experiencing the problem of excessive heating and damage to the bulb.
As it has happened twice the problem is not in the bulb, but will be in the female connector that attaches to the bulb. As others have stated a bad electrical connection (a high er resistance) . A few ohms resistance at that point would be enough to cause a sever and localized heating problem . Normal wiring and good electrical jointing will have a negligible amount of resistance for the designed current draw through that particular circuit .
If enough current flows, Ie. what the bulb will normally draw, this will be enough to cause excessive localized heating at the location of the bad joint.
I would suspect the crimping of the wire at the termination of the wire where it attaches to the female connector that then attaches to damaged terminal at the base of the bulb.
Whenever I come across any sort of a problem such as this ,I make sure that I properly solder any joints ,or repairs that I make to the wiring.
Cheers Winston Lee, Northampton, Western Australia