Ending things

So I've been talking to this guy for a while now and it's been great like we're really into each other and it's amazing but for the past couple of days he's been acting like an asshole and everything completely changed. I called him out on it today and he pretty much told me that he doesn't want a serious relationship and things moved way too fast for him and he doesn't want anything anymore and I don't know what to do. I don't know how everything was going so well and it took a complete 180 on me. I can't help but feel like I did something wrong or there's something wrong with me, even though he said it has nothing to do with me I can't help but think it is. What did I do wrong, what's wrong with me. Ugh I hate feeling like this.