This is how you lie with statistics. The FAA claims that 96% of medical certification applicants are ultimately certified. Another FAA source claims 0.1% get denied. And some say hell runs a little hot.
If you answer “yes” and disclose mental health issues to your AME, you are really looking at a roughly 50-50 coin-flip that takes 1+ years to determine whether you get your license.