Is she eating the carpet or just ripping it up ? My female went through a phase like this and my god she was like a dog with a bone. My main solution was to cover the carpet with cheap rugs that she could wreck without costing me a fortune, until I found her things she would rather be doing.
You could also purchase fleece and lay it down smooth as possible over the carpet. I think there is something about carpet being textured that is the appeal – my girl loved ripping each individual thread up, and it allowed her to get the sensation of digging.
Similar to that, lay lino over the carpet, or interlocking foam mats-this will block the carpet and hopefully she will forget the bad habit and you can then remove the lino.
I am a huge advocate for diggy boxes- You can fill cardboard up with shredded paper, or shredded fleece pieces and hide treats in there.
If you are brave (or fool hardy like me) you can give her an actual container with soil or sand, or grow grass in one of those underbed storage containers and let her tear at that for a bit.
I used to think rabbits chewing and digging were two separate activities, but from watching them, they actually use their mouth while digging as much as their paws, so for mine dig boxes helped a lot with the chewing of the floors/walls
Keep in mind this is not a boredom behaviour, this is a rabbit behaviour. She is designed to chew and unfortunatly your carpet is the substrate she has landed on.