If you accept for the sake of argument that a six month jail sentence waiting for trial is a violation of your Constitutional right to a speedy trial (it's not[0], particularly if you're waiving a jury trial and are being tried by a judge), the person whose rights were violated would need to sue and appeal on those grounds. It's very unlikely that on day 121 the judge dismisses the case, but they're certainly free to do that if they feel it was a violation.
I'm not sure it would be unlikely given the narratives of the article. At least it shouldn't be. Judges exist, partly, to prevent Kafkaesque application of rules from causing injustice.
[0] https://www.legalmatch.com/law-library/article/right-to-a-sp...