The problem is India. Afghanistan would rather listen to India than Pakistan, even if it means poising itself to the death. Why? Because Afghanistan is historically known to be racist towards non-Afghan breeds, and to the event, they even opposed the creation of Pakistan in 1947. Not only that, the regions in Pakistan dominated by their own race chose Pakistan over Afghanistan during the partition. Afghanistan couldn't handle it, and ever since then, Afghanistan has been trying to sabotage Pakistan. Even in 60s they failed against Pakistan which at the time Ayub Khan was leader who happened to be their race but sent clear message to Afghanistan.
When the hatred goes into the deep enough, no amount of logical reasoning can convince otherwise. It is inevitable just as KSA and Iran are drawn to destroy each other for sectarian war thus in the process killing themselves.
I mean no idiot nation would want to jeopardize its future for the sake of Indian market which is the result of inflation akin to bad receipt for the economy of Afghanistan as whole. Not to mention, biting the hand that provides the opportunity for the expansion of trades including the possibility of global following by the support from Central Asia, Turkey, Iran, Russia and You aka China.
But Afghanistan is unique [height of stupidity]. I am beginning to understand why Afghanistan as nation failed miserably.
Cut to the point. Afghanistan wants India on Afghanistan-Pakistan transit and CPEC, hence the whole drama. Your own government made it official issue about India being left out.
Stop playing with the words. Even China knows that. Pakistan and China are not going to accept India no matter what. Afghanistan has bright future with China and Pakistan together. With China and Pakistan, that means no India.