Hmm, I feel like this is similar to Sōkyū no Fafner. The Festum start off as a hive mind, but as humans keep fighting back, they gradually learn emotions and individualism—like sadness, pain, and anger—until eventually, Soushi and Koyo, who were assimilated by the Festum, manage to break free as separate individuals.