Try to reframe it. You really care for him. You, I assume, felt connected. He didn't, or at least doesn't any more. He's not rejecting you - he wasn't able, for whatever reason, to properly connect with you in the first place, or can't continue building on it.
You, as a person in your entirety, have not been rejected - that isn't really possible, because no one can 100% 'connect' with another person, it's not possible and besides would be unhealthy.
The transaction - sorry to be blunt, but that's what it is, a social/emotional/intellectual/sexual/financial etc. transaction, over time, episodic, influenced by events, past histories, previous emotional experiences - wasn't working for him.
Whatever the reason(s) (I have no idea) it's not a rejection of you as a person - it's a rejection of the dynamics you both shared, over time. I'm not explaining this very well. He can't reject you as a person. He has decided the shared journey so far is not one he wants to continue.
Ok so the point might be moot - you feel just as bad anyway. But please, please see, it's not YOU. It's the time spent with aspects of you and aspects of himself he has decided wasn't a net positive for him.
You've had the choice taken away from you, and that's really hard - but please, don't put it all on yourself!