Boyfriend just broke up with me

Okay so last night my boyfriend broke up with me and it made no sense at all, it came out of the blue and he said that He wasn't good for me and that if we were together any longer is drive him insane, thing is he said that I was perfect and that he still really likes me
I'm confused af and I need to know wether he'll ever come back