I tried disabling USB debug mode when phone is disconnected and enable it again. Same thing happens.
It seems to be though Android related. I tried with a same model phone (Samsung SM-J730F) but with Android 7 and the installation in the other phone works perfect. What I see in the Android 9 phone when I connect the USB is a rotating counter with a percentage which is hidden when it reaches 92% and then the computer recognizes the phone. I am able to see the foiders and browse through them so it is not a connection problem (I think).
Edit - It is not also project related as another project reports the same thing.