I'm sorry about your situation...I feel for you as I am in the same position. I got to the point that I was feeling anxious just knowing i had to go to work the next day. It's good that you are realizing it now rather than years into a residency that you don't want to do. Obviously first you have to decide medicine or not?
Then if yes, what else would you want to do? Is there a field that you can switch to that you might possibly get credit for this year or even partial credit? That would make it worth while to finish the year while simultaneously applying again this year. Maybe you can find an open position in the field you want for this year? Depending on the field, there are various websites (some available only to PDs) that list vancancies.... just ask a PD in the field you want to go into. I know this is a frustrating thing to go through, especially after all the work (presumably) you did to get the residency in the first place (applying, interviewing, match, etc) but don't worry, you're not alone, and it will be ok.🙂