So the prince is female? Or did the mother actually actually change the gender?
Has to still be female for the third succession thing to be some kind of joke and not a serious contender right.
If the "cant change gender" rule was all that was problematic then being named successor candidate should already basically overwrite that and there would be no problem IF the gender was already changed at that point.
Also it's kinda normal for these stories to want to put a female on the throne "because it's different".