this question should be asked of advisors at the school.. they will usually have rules on how many times you can take rpelims before they pull the plug.
afterwards probably it is bad idea to go back there again, as it makes you feel bad to be back at the scene of the crime.
to get a fresh start go somewhere new. but study first.
in my case after boiuncing out of brandeis, i had a chance to go back, but they knew me as an unsuccessful student, so i went to a new school, and actually became one of the top students in the department, i.e,. i received the presidents fellowship, finished in 3 years, got three jobs, ...Two years later I wound up at harvard, won an NSF fellowship, and ran into a prof who had interviewed but turned me down at Columbia, and this time he quickly apologized for not accepting me!
other professors, including a fields medalist, quizzed me on who i was, where had i come from?, even though they had perhaps met me years before, they did not recognize me as a success it seemed. this was a good feeling.
so a fresh start probably gives you a better chance at doing well and feeling good abut it.