Your answers to Section D questions will be important. Since you were never arrested, cited or charged in connection with your court appearance, that removes questions 16 thru 18 as problem areas. You may want to carefully consider the answer to "19. Have you ever been placed in an alternative sentencing or a rehabilitative program?" because the Anger Management class may fall in that category. Thankfully it seems the court didn't actually order you to take the class, so again you may escape closer scrutiny.
The reason I'm bringing all this up because the slightest hint of domestic violence will cause the IO to dig deeper and could ultimately derail your N-400 unless you can prove the allegations were baseless. Be aware the burden of proof rests with the applicant, not the government. i.e. You must show you are a good person, rather than the govt needing to prove that you're not.
Also I still dont understand how this can derail my citizenship application. It is not a criminal case. Also nothing was proven against me. It was just a mistake presented by my wife's attorney to the judge, about the agreed order between us. Please clarify as to why you think this is so major ?
Also is there anything that we can do about this now.