I would say it's considerate of you to tell him of your mental health issues now. If he's scared away by that, then you arguably fastforwarded what was inevitably going to happen if you weren't to say anything. Saving yourself and him of a prolonged and probably worse heartbreak.
That being said, since im basically agreeing with you, I think it's good to see more contrary perspectives before you make your decision.