If you are feeding down stream loads, they may be on a shared neutral with another phase. Remove the load side wires and see if the GFCI stays on.
If you only need protection for the bathroom, take the load wires off and put them with the line feed connections where they were originally.. If the GFCI still trips with only the line wires connected, it's defective.
That's as good as it gets.