I concur. Google replacement of Pontiac G6 headlights. There are several available. It takes longer to watch than to do the replacement.
One of them suggests (and I would agree) to place painters tape along the painted edge of the grill to protect it from the headlight unit.
Also, carefully examine the bulb connectors. Mine were fried (because of the constant ON) so I replaced them with ceramic connectors.
I have since ungraded to LED units. Nice and bright, but no upper cutoff, so I re-aimed them lower so as not to blind oncoming traffic.