"moisture detected in charging port" in S8+

My S8+ keeps saying “moisture detected in charging port” even though the phone has never touched water. I cannot charge the device due to this problem. If someone knows how to solve this, please help