In today's academic environment, it's downright impossible to get an F as a gifted person, unless you're making a statement.
And that's a luxury most kids including highly intelligent ones (IQ 130+ or top 3-4%) don't have.
However, my broader point is that you should use the advantages you've been given to make a mark on the outside world and work your way around obstacles. For me, that was intelligence and mathematical ability. However, other people have other strengths that they could be using but many aren't. My girlfriend realized in high school she would never be super-special in academics or test scores (though she's no slouch either), but she's a champion networker and really good at putting people at ease, and that's gotten her a job as an investor at a highly-regarded philanthropic foundation. My uncle struggled throughout high school, almost didn't get into college, took 5 years to graduate - but found that he has a knack for cars, and now makes a very good living owning a chain of auto-body stores.
I might be misunderstanding you, but I don't agree. I was in the gifted program starting in 3rd grade, through high school. I got many Fs in junior high and high school, and I eventually dropped out of high school in my junior year I think. Granted it's been 10 years ago now.
I spent 5 years either working in fast food or doing nothing. Eventually I took the ACT, got my GED, and got my CS degree from a public university.
I'm doing very well now, and I feel like failing school and taking some years off helped me a lot. I'm sure I'd be nowhere near where I am now if I had stayed in school.
I think that if you want to do this successfully, you need to get really good at hacking expectations and doing end-routes around roadblocks. For me, I had the advantage of perfect scores on a bunch of my standardized tests, so I had this other credential that would make people sit up and take notice. My parents also advocated heavily for me, and I was not shy about befriending adults who I thought were more competent than my teachers and getting work/academic experience with them. I'd taken college courses at 3 different schools before applying to college (acing all of them, and in one case doubling the class average), and I'd worked for a tech startup and done good work for them, so I had plenty of people willing to write recommendations for me.
The most important thing to realize if you're faced with a roadblock (and probably in life in general) is that different people are impressed by different things. You will never please everyone, but if there are some people who are impressed with you and willing to advocate for you, you can usually do an end-run around the people who think you will never amount to much. It's somewhat unfortunate that the public school system is packed with the sort of people who look at surface impressions only - think about what sort of people might be attracted to work at an institution where their own freedom to decide what to teach is itself set by bureaucrats sitting in the State House who have never gone near a classroom. It's doubly unfortunate that these are people in authority who have significant power over how our kids turn out. But the real world itself is much broader and more malleable than the classroom, and you can hack your way around a bad classroom experience.