what i did was make a save while in the inste-rail
then quit and loaded the save, after that go back and grab the emergency funds , proggress the story and when you get behind the fireplace dont turn the light on, instead go interact with the safe till it lets you attempt a code, dont mess up or accidentally give up
you only have one chance if you mess up you'll have to redo it all again