It's been my experience with a variery of animals that they regurgitate or throw up shortly before death, often during death throes. Seeing it was about a half hour before she actually passed away, that might not be the cause, but wanted to give you anther idea besides something toxic.
I'm so sorry for your loss.
I'm so sorry for your loss.