Sofie/Sophie/Sophia was a fairly common name during this period, so I don't think we can assume that just because one of the children is named Sophia that that was also her mother's name?
Looking at the dates you mention it seems possible that there are 2 different Sophies, but somewhere they have been made into the same person?