The actress suffered debilitating brain fog during the menopause, and had a really difficult experience going through this midlife change