Hyundai Motor is ending projects with Rimac Group, sources said, after the Croatian automaker deepened its ties to Porsche.