Go back to the save before they go AWOL. Dismiss them. Get a coupla other companions, do the mission where it breaks their script. Fire the new companions and then try to rehire them. See if that works.
Edit: BTW, you didn't say where they go berserk at. Were you working a quest, or is is just an area that you enter?
-Gunny out.
Well Im over going all the way back. I've had done too much sense then, what save I do have is 'moments before Ed-E turns Hostile'
I lost them when they weren't with me. I believe it was after the had loaded dead money. No matter what I do they leave.
I had them waiting in Novac, after dlc, I can't walk or fast travel to novac without them leaving.
So I let them go. And have gone on to do tons, without campanions. I have sense had Veronica, and Cass. and even Boone agian.
It wasn't until going back for Ed-E that I found Him turning Hostile the instant I entered Nash's residence. If I leave before Ed-E 'music' plays and starts attacking, He stays in the house, and will await me to come 'activate his hostility' later.
So I have a save game, within Primm where I have yet to go into Nash's residence.
(I haven't tried going to see Ed-E with another campanion with me, Id assume Ede with shoot us both)