Failed two of my AP exams miserably; does this ruin my chances in a UC?

I just got back my scores today and I received a 2 in AP English Lang., a 1 in APUSH, and a 4 in Calculus AB. (My apush test was literally the day after my calc exam and I decided to focus more on calculus) I got As and Bs for both semesters in Apush and AP Lang but my AP exam scores are horrible. Will this negatively impact me a lot? Especially with UCs? I’m trying to get into either engineering or accounting

No. Admisson officers account for scores after you’ve been accepted for placement/credit, if that. Why would an engineering/STEM officer pay attention to the scores of history and english anyway?