Mites
If your guinea pig starts to scratch or twitch he/she may be carrying mites or lice. See the vet as soon as possible so that treatment can be started before fur loss or skin damage results.
Mites cause mange. The intense irritation of mange can cause fits.