I am so sorry
I wonder if your kid would benefit from seeing children therapist who’d help her to process this? I also think when dad comes pick her up tell him in front of her that he is free to see her often and that you never stop him from seeing her.