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.
There will be 4-6 weeks of injury time for Pedri. I doubt whether Barcelona can get enough performance from 21-year-old Pedri from now on, because he may not be on the field for a long time even with minor injuries. Suffering from such injuries at such a young age must have exhausted him and worn him out psychologically. It gets better, I hope he gets better soon.