Probably both, but I saw her doing it...and was a bit shocked.So yours was pecking her own feathers, or was she being pecked? Or both? Does that happen because of protein or nerves, or was it just her thing?
Bad habit mostly, they get plenty of protein here, birds can be rather neurotic.
Eventually she, and the others I assume, stopped and all her feathers grew back in.