My prefect boyfriend isn’t so perfect...

So me and my boyfriend will have 3 years together soon and are expecting our first baby. We wanted this since we met. We recently moved in together. The other day I was going through his old phone and found various messages with girls but there was one that stood out more than the others. So I checked his texts and of course they were texting each other. The messages weren’t sexual but they were very flirty and talking about hanging out which seems like it didn’t happen but you never know. I’m honestly so heart broken I didn’t think he would ever be one of those guys. I know there isn’t such thing as perfect but I thought he was pretty close. Every time I start thinking about this I just want to cry. I keep thinking about what I would of done if I wasn’t pregnant. 😭😭