Context: A divorced father has had his son over for a few hours and they ended up having a heated argument that ruined the evening. His ex-wife talks with him two days later. She is angry and says this:
What happened? Why couldn't you just have had a fun time with him?
Is this sentence phrased grammatically correct and natural for the context (in particular "have had")?