Antiferromagnetism driven charge density wave in infinite-layer NdNiO2 nickelates