It doesn’t say what you were whipped with, but 40 stripes would be the limit before you were “degraded.” The idea was to pass judgment and issue a deterrent. And we have yet to see laws that prescribe imprisonment, if you don’t count being forced to stay married to the woman you falsely accused of adultery. In which case I believe the woman shares that sentence.
I have often thought a good beating was a fit punishment for a bully or a wife beater. Prison is expensive and counterproductive. It is also harmful to the perpetrators ability to support his family.