Use Dy transformer on supply of
VSD. The angle of 5th harmonics is 120 degrees and 7 th harmonics 180 degrees ( secondary leads 30 degrees on primary), when using connection group Dy5, harmonics from VSD are 180 opposite to other harmonics on trafos primary side and these will compensate each other. This is case by case study and You have to know characteristic of supply grid very well.