What does Ansh mean?
From Sanskrit amsha (अंश), 'portion, share, part'. Often used affectionately to mean 'a part of oneself' or a share of the divine.
What does Devansh mean?
A compound of Sanskrit देव (deva, 'god, divine') + अंश (aṃśa, 'portion, part'), read as 'a part/spark of God'. The elements are genuine Sanskrit, though the compound itself is a modern coinage used as a name rather than a classical term.