I had some advice from the forum last year with Brodie scratching the carpet and managed to control it - but now she’s started doing it again with a vengeance, and nothing’s working. I think I’m doing something wrong

. When she starts I put her into a down and then reward her, and then she goes right back and scratches the carpet again! I end up putting her on her houseline which isn’t really helping to get to the route of the problem. I always ignore her when she does something ‘bad,’ but I can’t do that as she’ll damage the carpet.....
Sometimes she will just dig but other times she will scratch the carpet and then stand and look at me so I assume she is attention seeking, although I‘m worried she may be stressed. It mostly happens at night when she goes through the whole Wall of Death routine - I know she is not as mentally stimulated as she should be because of her walkie problem but I am trying to fix this with clicker training and games etc.
What am I doing wrong

. Any ideas appreciated x