That's horrifying.
You 'lost all desire to continue the relationship'... meaning you ended it. I feel so very sorry for this person. You're hurting people. You do not have to have a relationship with any man. It's your choice. But if you do intend to have a relationship, you must start the relationship by telling him you will end the relationship if he ever mentions sex. If you don't, quite frankly, you're cruel.
Quite frankly, if you were with this person for two years, an affectionate relationship as you described, I would assume you loved them and grew deep feelings for them, yes? So much so you would find it very difficult, if not impossible, to stop seeing them simply because they brought up the subject of sex, right? It's not you're fear of intercourse that concerns me, but that you would be so cold that you could end a 2 year relationship for only that reason. This coldness should concern you more than the fear of sex. A relationship doesn't work if you don't love them as much as yourself. Real love conquers fear.
One, IF you want to get married and be fine with sex... yes, there are behavioral psychologists that can cure you, or greatly reduce, your fear of intercourse.
Two, if you tell a man right away that you want a sexless marriage, there are some men, especially impotent men, who would be fine with it. Just be up front and honest.