It would be the best option for Barcelona to sell every player who is prone to injury as in the case you said. Because Barcelona is building a more solid team with players they can rely on, it would be wise for players who are prone to injury to be released before it's too late because Barcelona can also use the money from the sale of Pedri to buy other players at this time.
Who wants to buy with the current conditions? I think Pedri is really unlucky, after recovering he was injured again. Maybe the player who is sold will be cheap if he is injured. This is also a loss for Barcelona. They can't make many transfers but the condition of their players is also injured a lot. I heard that Pedri injured his knee again. Flick faced a difficult situation. I'm actually quite curious about the current condition, I doubt Barcelona is unable to compete with Real Madrid again.
I think Pedri and Barcelona are in a difficult situation. Pedri is a very talented young Barcelona star and he is said to be the successor to the Iniesta-Xavi duo along with Gavi. I was amazed by Pedri's extraordinary talent. Unfortunately Pedri was unlucky because he often suffered injuries. This of course will affect his performance after recovering from injury and this can cause his market value to decrease significantly. Barcelona can sell Pedri as capital to cover their financial crisis. But it will be very difficult to find a club willing to buy him under current conditions.