I went through this with my ex of 5 yrs. It’s really fucking hard but better in the end. In my case we still text a ton and it’s been over for a couple yrs. If he has enough maturity he will also understand it’s better for him because your honesty will mean you care enough to not lead him on.