Recommandation for a male connector to plug in J3/J4 female connector

I bought odrive 3.6 24V equipped with connectors.
For connecting encoders to the one-row J3 and J4 female connector, I use wires with standard pins.
These pins are wobbling in the J3 or J4 female connector since the diameters of the pin and the contact of the connector are not matching.

Has anyone a recommandation or a link for a male connector (for crimping or soldering wires) that will mate in the female connector of the odrive board ?

Thanks for your help