Acting out because of anxiety of because of an illness isn't odd at all for dogs, and licking fabric (including carpets) is part of that. Unless it's happening too often, it's nothing to worry about.