Use this as an opportunity to figure out how to learn better. What do you need to do differently? Are you relying too much on memorization rather than using the concepts? How can you prepare better for tests - should you be reviewing your notes even when you don’t have a test?
Talk to the teacher. Consider a study group. Get pointers from a tutor if you can afford that.
As a freshman, this isn’t about the grade – it’s about figuring out how to master a learning challenge. You’re worrying about the wrong thing. You can do this, but not by doing more of the same! There will be plenty of great college options out there when the time comes. Maybe Ivies, but maybe something else. You don’t have to think about that for at least 2 years.