Problem Samsung a8 moisture detected


I get this error from time to time, it's even persistent and I can't charge the phone until it disappears. I was told by a mobile phone that the plug is to blame, but I think that a solution would be to reinstall the software or something similar. Any advice would be helpful, thanks in advance.