Well I'm pretty sure they did it for their own self interest but if you have gotten into the program and you're able to hang on academically then I suggest pushing through. Mainly because doctors are in short supply all over the world so after clearing a licensing exam and language exam you can practice almost anywhere in the world(except for the some African and Caribbean locations but in those places the only way to practice is by graduating from a local medical school). Another reason is that even though the profession will most probably give you crippling depression you'll still be better off than 90% people because of the salary you will get(which again depends on your location, I mean if you are in Cuba or Egypt then good luck bucko).
Most jobs that pay you enough to live a safe life will make you depressed. Especially medicine which will take decades to complete in terms of studies and the work is so dogshit boring and depressing. Too many cardiology residents painting the wall with their grey matter because most of their day revolves around fleecing the relatives of brain dead patients for organ donations. I know it can be hard with BPD but try your best to push through, take medication and pick up some organizational skill like keeping a journal(notion works pretty well). I suggest focusing on a residency that will land you a desk job at some nation's DoH or something because it will be similar to a regular corporate job but with the pay you'll get as a practicing specialist(I suggest going with something like Internal Medicine and do a fellowship in Infectious Diseases, you'll have options to get into epidemiology which is a sure way of getting a boring desk job that pays well).
Despite what all the glamorized celebrity doctors say on YouTube, medicine is a solitary journey when it comes to personal achievements and qualifications. You aren't facing your licensing exams in groups nor are you selected into residency based on your ability to circle jerk your peers. Just bury your social life and adapt your life to that of a recluse(especially during the pre and paraclinical years). You can pick up the broken pieces later. But if you think you cannot adjust with the program then you should consider switching. I'm sure that is a very difficult decision to make and the anxiety can be lethal, but if you go forward with a program you cannot cope with, you will end up trapped. So think carefully. Take a week off and think about it.