Haven’t played it and haven’t used whatever game engine you’re using, but…
Wouldn’t it be possible to create some sort of global variable (static in some languages) that you can set to whatever gender the player has chosen? And then from there, the game would check that global variable whenever it has to pick a pronoun