raising a baby alone

this is my boyfriend of two years. we’ve lived together the entire time, and suddenly he’s switching up on me. i got pregnant by accident, wasn’t expecting it and definitely wasn’t planning it. this was his reaction, and it’s absolutely heartbreaking.

has anyone been through the same thing? i have the support of my family, but i’m worried about a child growing up without a dad. this is supposed to be such a happy time, and he’s so unsupportive.