Are you a freshman? Earlier mistakes are forgiven, but idk why you didn't withdraw instead of getting a D (you can generally see that coming). Spanish won't hurt your BCPM so that's not such a big deal.
To quote Goro "One bad class won't keep you out of med school, even if its an F."