What to do about failing real analysis for the second time
I found this post very interesting and the analysis spot on https://blog.plover.com/math/self-esteem.html. The solution is to start working seriously much earlier - not only will you pass, you might even enjoy the experience.