This discussion is not about criminal consequences, but civil consequences.I think that you are misunderstanding the consequences of violating priviledge....
If a clergy violates priviledge, the clergy loses his/her job. There are no criminal consequences
If an attorney violates priveledge, the attorney is disbarred. There are no criminal consequences
If a doctor violates priviledge, the doctors loses his/her license. There are no criminal consequences
If an ex spouse violates marital confidentiality, what consequence would you expect there to be?
Attorneys and doctors who violate privilege and privacy may be subject to civil actions over and above what their respective licensing boards may mete out.