go talk to a xfer counselor.
If you can withdraw then it doesn’t hurt your gpa (although a bunch of W’s won’t look good either). If you get a C then you can’t retake it later for a better grade. See http://admission.universityofcalifornia.edu/counselors/q-and-a/calculating-gpa/index.html#9 I’m not sure if they still take the D/F into account when looking at your transcript, even if it isn’t part of your gpa. Ask a counselor.