hello!!
you're not alone, what i do to stay productive is that i have study calls with my friends, so we either use google meet or zoom and then study together. i think there's nothing better than that!! it also keeps you motivated after the call ends to work more, so give it a shot
the answer is simple, if you dont want to drop out, you wont. also, since you were doing well before you'll end up doing well with your revision now.
maybe also try the pomodoro method for studying!