Hello
If dentistry no longer appeals to you are there any alternative careers that you have had as options either NHS based or completely outside of the medical profession. If that is the case and I am by no means saying that is your thought, but if you're thinking of careers outside of anything medical based, there is absolutely nothing wrong with changing your career path.
22 years ago I wanted to be a bus driver as my dad used to be a bus driver himself but after I got my PCV Licence in August 2006 I did the job for 2 years before I was made redundant due to loss of contracts. I plodded on for the next 2 - 3 years before my dad rang me up and suggested to me about university studies and asked me to give it a try, best decision I have ever made and here's why.
I have had a passion for volcanoes since I was 7 years old and now at 51 I have just finished my 5th year out of 8 and just awaiting my results from my recent module. My point is, if yiu want to change your career path for another of your interests or passions go for it.
I too have had depression ( mild level ) aswell as anxiety ( high level ) and I agree with you that it is not easy to cope with a lot of the time, however, don't ever let it hold you back or set you on a path of thinking should I leave uni, you have a lot of fellow members on here to talk to.
Also you have your fellow students at the uni you signed up with aswell as your student support team and tutors to talk to, please don't hesitate to contact your fellow students, student support team or your tutors if you need to to as there are many ways they can also help you. The only example I can give here is that a few years ago the tutor for the 1st module that I passed in 2018 had noticed that I was having issues understanding the work, the tutor suggested I get a dyspraxia and dyslexia test and in September 2019 I did. The report did confirm that I have both dyspraxia and dyslexia and likely had done since my early years of schooling ( age 5 onwards ).
If you feel you need to talk to your uni advisers please do seek their help and guidance, I couldn't believe how fast help was put in place for me and your uni should have no problem being able to help you, it's well worth talking to them.