The only way I can see it realistically hurt you is if you're brought to court because the lawyer on the other side can dig into your past. E.g. if you're being sued for malpractice and you failed 3x they're going to bring this up in court to attack your credibility. There was a legal cause where a Boston psychiatrist over-medicated a child patient to death and it turned out she failed her oral board a serious amount of times (I forgot the exact number but I believe it was more than 5x). It was mentioned in each court case and brought up on 60 Minutes.
In day-to-day work I've never seen this actually brought up ever.
What Killed Rebecca Riley?
What Killed Rebecca Riley?