How to get over a breakup

I’m 17 weeks pregnant and broke up with my partner this morning since he slept with the same girl twice. How can I get over the breakup? Thanks in advance