Just an idea: in 1677, around the time of the marriage of Mary and William of Orange, Anne got smallpox and couldn't attend the cerimony. Not much later, in December, the young baby Charles Stuart (son of James and Mary of Modena) also died from the same disease.
So, WI Anne had died from...