Same thing happened to me.
The plastic plugs harden and then turn into powder.
The gears were fine though and didn't need to be changed.
Plenty of How-To videos on YouTube.
I used Dorman Part Number 74410. They are available at any Auto Parts store or search the web.
Buy two packs and do both headlights. It's just a matter of time before the other side fails.