Agreed that you need to find a plan B. Another option is to email the professor for the class. Sometimes they will allow students with good reason to enroll over capacity (at least they did when I was in undergrad). At any rate, it won’t hurt to at least ask the professor.