To resolve the issue please follow the below mentioned steps:
>Kindly check by using any other USB cable.
>Check by using the USB cable in any other P.C port.
>Go to the device settings > developer > USB debugging > enable it.
>C**bleep** the device with setting reset by below setting i.e. Open Setting > General Management > Reset > Reset Setting.
>Create a data backup and reset the device.
For further assistance, register your concern in Samsung members app(Open Samsung members app>click on “+“icon>send feedback>Error report/ Ask Questions).
Team Samsung Members