Is it grammatical and correct to say
Because of my three failed attempts, I now know three ways how not to go about doing this.
This does not sound good to me. I would omit 'how'.
eg Because of my three failed attempts, I now know three ways not to go about doing this.