Always cry after masturbating

When I finish myself I start thinking about my ex and I just cry so much. Why is this happening. We broke up in August this year and it’s really annoying