She bore two sons who both died in infancy , but by the time she was about to give birth to their third child , her husband lay dying at Falkland Palace .
Her husband lay dying at Falkland palace after she had bore three sons .