*Halle Berry is reportedly claiming that her ex-boyfriend Gabriel Aubry is a crazed, jealous man who put their child at risk, while Aubry claims she’s the jealous one who flies into rages and is a no-show in the baby’s life … all this according to sources at TMZ.

The website reports…

Halle and Gabriel are locked in what has turned into an epic custody war.  Sources tell us … while Gabriel was dating someone last year … he claims Halle would call, screaming and swearing at him in a jealous rage.

Gabriel is claiming … when he went to London and South Africa with Halle and Nahla last August when she was shooting a movie, Halle would sometimes not return for days, when she was supposed to care for the toddler.

Gabriel also claims Halle cares more about dating than parenting.

But our sources say Halle says it’s the opposite — that Gabriel is petty, jealous and irresponsible.  But the most serious allegation … we’re told Halle believes Gabriel put Nahla in immediate harm’s way by being inattentive while the child was in his care.

As previously reported, Berry, 44, dropped out of the star-studded film “New Year’s Eve” in order to prepare for a court battle with Aubry over custody of Nahla. Former “Grey’s Anatomy” star Katherine Heigl is replacing Berry in the film, which begins shooting in New York City this weekl.

“Halle Berry was forced to pull out of a film production in New York this week due to pending custody litigation involving her daughter,” her rep tells UsMagazine.com in a statement. “She has attempted to resolve these custody issues amicably with her daughter’s father, Gabriel Aubry, directly, but given his lack of cooperation, Halle has no choice but to seek swift judicial intervention.”

“Halle has serious concerns for her daughter’s well-being while in the care of her father for any extended period of time and is prepared to take all necessary steps to protect her,” her rep adds.

Though the twosome were often seen cordially co-parenting in the wake of their April split — including a shared trip to Paris — the model, 35, filed papers Dec. 30 asking to be formally recognized as Nahla’s father and to establish shared custody.

Says her rep, “Halle has always made the needs and safety of her daughter her first priority and, both while Halle and Gabriel were a couple and since their break-up, Halle has only acted in her daughter’s best interest.”

Sources familiar with the case tell TMZ that Aubry gets frustrated when Halle leaves town because it interferes with his ability to be a father.  Accommodations were made for Gabriel to accompany Halle and Nahla to London last August only after he complained.

The couple has never gone to court to establish custody and visitation rights.  They have tried working it out between themselves, but the situation has now become impossible.