It's not a poem; it's a song. No, "by such by such" is not an idiom. It's probably repeated because two more words to fit with the rhythm of the song and the writer likes the sound of "of such". This is not uncommon in songs.
The lyrics mean that happiness is thrown away by loving too much.