For anybody coming lately to this issue, I want to just post the solution I got. I just changed my PWM frequency from 5000Hz to 4500Hz and the harmonics problem disappeared magically. So, it must be...