Break up

How to get over a break ? I been with my bf for 2 years and he’s my first bf we’ve been having a lot of problems so I felt like it was best we go out separate ways a lot of infidelity was going on .