If you were hoping that you would be able to get through your legal career without losing a single case, you are clearly deluded. A big part of the reason what that is the case has to do with the fact that no one in the history of criminal defense law has ever managed to go their whole career without losing at least a couple of times in some way, shape or form. Your focus shouldn’t be on trying to win at all costs at any given point in time. Rather, it should be about figuring out what you are going to do when you inevitably lose.
Criminal defense attorneys actually have quite a few options that they can look into if they lose the case. According to https://www.lawyers.com/clearwater/florida/carlson-meissner-hart-and-hayslett-p-a-771478-f/, a great resource about the law and lawyers, the best recourse that you can turn to is to appeal the decision. This would basically make it so that the decision would end up getting reviewed along with the entire case, and when that happens you would basically be required to look into figuring out how you can take the case to a higher court of law.
When it comes to criminal defense, losing is always going to be an option. Society isn’t kind to people that it has deemed to be villains, and defending one of them is not going to score you any points either. The life of someone that works in criminal defense would be hard enough, but the fact that you can make appeals that would give you the chance to reverse the outcome to a certain extent would make it a bit easier for you to deal with this life.