All i can say is been there done that. Don't warry it happens to a lot of people. I am doing pre-med and i've failed itro chemistry my freshman year. Turns out i had depression for years and didn't really think i had it. It sucks. No wonder never in my entire life i was a good student. Even now when the fall semester comes i am still doing much worce than over the spring semester. Sunny days where are you. Well if it makes you feel better i am close to failing my Organic Chemistry class.
I hope i don't though. If you're doing fine in all your other classes i wouldn't sweat it. Just focus on something pleasant like your car over the brake and kick butt next semester. Good luck, Hope it turns well in the end. Viktor