Even if you can't get through the UPSC exam there's nothing to worry about it then you can pursue master's course and at the same time prepare for UPSC or you can look out for some other exams also like SSC, NICL or Banking any other government exams.
Or if you manage to finish your masters then you can go for a teaching career also.
Good luck
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile