It is evident your boyfriend wants to break up with you.
You should request him to give you two weeks to think about it. In this period, don't contact him in any way. Ask him not to contact you during that period.
This is to allow you to prepare for the breakup so that when the breakup happens, you'll act positively which will enable you to heal and recover quickly from the breakup.
You shouldn't beg him not to break up with you. This is because once a person has decided to break up with you, even if you insist and he remains in the relationship, the relationship will be faced with problems that will result in a breakup.
After the two-weeks period, contact him and tell him that you're ready to break up.
For a person to say he has dreamt it, it is a sure sign he wants to get out of the relationship. Don't force him to stay in the relationship.