Check if character is underwater

Do you have any water buyoancy physics enabled ?

That could be the cause: the object moves-in due to gravity and moves-out due to water opposing force.