Williams says terrifying health scare almost killed her