Would you please add more details? Where and when are custom relationships changed for you? What OS are you playing on, etc?
The simplest fix would be to start a new game, choose the custom relationships again, save the game, and then try opening the saves or gallery.