This is not any hardware issue,it's a software issues coming since April update,when it's showing fast charging it will disconnect automatically,but if it shows charging only then it will not disconnect
Do one thing start mobile in safe mode 3-4 times,fast charging will work for sure, idid the same,but when it shows fast charging,it will disconnect automatically,so u have to plug out and in again,then it will charge normally again,this is a big soft...