Problems with romantic relationships

Since over the past 15 years, I have been experiencing the same pattern: I am unable to fall in love . This is so frustrating and sad because deep in my heart, I am looking for a real soul connection and a longterm relationship. Also, I want to be a mom and I am already 40 years old.
I can´t fall in love with the men because my brain starts to look for all the “mistakes” in the men and that holds me back from falling in love. Although I know this pattern, it seems imposible to change. Any suggestion on how to proceed. I am currenty in a new realtionship and feeling like I need to break up again….