Commitment issues

So I feel like I have commitment issues because of my mother. Her and my father split right as they had me. So I’m always scared to get a boyfriend because I feel like I will act really weird. Any tips or story’s on how you overcame this??