Dear Samsung Member,
Greetings from Samsung Customer Support!
Be rest assured by following the below troubleshooting steps your issue will be resolved:-
1). We always recommend to use genuine Samsung charger for charging your device.
2). Check physical condition of USB cable, if any tear or bent please replace it with the new genuine one.
3). Check device in safe mode :-
Steps to enter into Safe Mode:- Press and hold the Power key, when Power off icon appears > hold power off icon.
Exit safe Mode:- Restart device.
Note:- If your device functions correctly in Safe Mode, it is most likely that the issue lies with a 3rd party application that can be uninstalled to resolve the problem.
4). Update software(If available):- Settings > Software update > Download and install > Install now.
5). Reset the device :- Setting > General Management > Reset settings.
Note :- Kindly create data backup of your device via SMART switch mobile application.
If issue still persist or for further assistance, kindly register your concern in Samsung members app (Samsung Member > Get help > send feedback > Ask question/Error report)
Thank you for writing to Samsung.
Samsung Customer Support