How to get over a bad split?

I’m devastated.

Kids are involved. Court is involved for custody. My hearts shattered . I loved him. He told me he no longer loves me.

How do I get past the hurt?

I spend all my time thinking and crying!😢