Letting go of good memories after a breakup

How do you prevent the good memories from a previous relationship clog your brain?

It’s been like 2 months since my breakup with my ex. At first, I thought I could handle it but it’s not as easy as it seemed. I don’t really have any drastically bad memories with him but the good ones keep lingering, bringing tears in my eyes and making me wish it never ended.

I wish I could just switch off the memories from the months we were together but it just doesn’t happen. I don’t wanna be stuck up for months.

How do you find hope that you’re going to find love again? How do you let go of even the good memories?