Some cats get over stimualted. They enjoy it so much and it feels so good that they don't know how to handle all that pleasure... so they bite.

I would be willing to bet that she comes back for more petting a few minutes later