I'm assuming you had a MIP, public intox, drunk disorderly, open container charge, or some other drug/alcohol interaction with law enforcement "which resulted in attendance at an educational or a rehabilitation program". If that's the case, you answered no, and you did not disclose this information elsewhere in your application then you have submitted a factually incorrect application for a medical certificate. The application is basically a sworn statement to a federal agency. The consequences of the FAA discovering this vary based on whether they determine your omission was intentional or accidental.
Searches on this forum will justifiably tell you that engaging an attorney for medical issues can make the process of dealing with the FAA become adversarial. They are correct, but the bell is rung and the legal consequences are real. Your best course of action is to obtain the services of an aviation attorney to discuss how to "come clean". Pay the attorney to create attorney client privilege and have them act as your advocate. Follow their advice.