hey, you're right about how having a bad week is normal! you say you want to be an academically inclined person, but the truth is even the most academically inclined deserve to have a break. you are human, and its okay to want a rest and not be working at 100% all of the time. your past school is in your past, and its hard to completely erase that from your memory, but that school is no longer part of you. you seem to be in a much better school now, and its important to not let meaningless statistics like that affect you, because you are not defined by one simple number. you may have gone to a bad school, but that does not make you a bad student. in fact, based on what you've written, you seem the opposite. you have goals and aspirations, which is an amazing thing. some people may be smart, but in reality they have nothing to work towards because they lack aspirations. you on the other hand, have an end goal and that is always something to focus on. it may seem out of reach, but taking one step at a time can only lead you closer to that goal.
and also, you're also working and revising outside of lessons, which is already more than what some do. you are only a failure when you have no desire to succeed anymore, and so a failure isn't what you are. having a bad week is normal, and i know it can be hard to believe when everything in your life points downwards and you feel like you can never catch up, but knowing what you want is already such a good head start and it really will get better!