The sentence is grammatical, but it makes me stumble. " You could also think about skipping the second believing altogether. Since "flaws" is plural and "leads" is singular, there would be no doubt as to what "which" refers to.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Anonymoushave no flaws, believing which leadsI'd change it: