The headlamp is H4 which uses 3 space connections - you can buy H4 connectors (the black connector) - see below
I am not familiar with the grey connector. ...... ah I see this is gen 2 - not sure about that headlamp bulb but it will have industry standard bulb so it may be a H4 or another type for which I am certain there will be replacement connectors.