I like those players who are high quality and extremely resilient or otherwise they wouldn't belong into the top of world soccer. If Ronaldo or Messi had been injured every 3 months, I guess they wouldn't have won a single ballon dor.
There are a couple of factors that determine a player staying fit.
First, the type of body they have a factor. I don't know what makes one person's body stronger than the other. It could be hereditary or the things they eat, but what I know is that some players are justvprone to injury and there's nothing they can do about it.
No when you have a player like that, you have to manage him accordingly. The number of games he plays, the number of minutes he gets, the food and treatments he takes, all these can help an injury prone player stay in shape and not get injured regularly. This would work if the player is ready to put in the work.
Secondly, some players keep themselves very fit. We only see the output of Ronaldo and Messi, we really don't see how they work hard, eat well, avoid a lot of things to keep themselves in shape. Very few players can stay that fit. Check in the history of football, how many players stayed up at the toppest level for 15+ years.
So it's really no fault of the player, it's not like he likes getting injured. There are ways to manage player.
Pedri is injury prone today because he was not properly managed few years ago. A 19 year old played all games for Barcelona, played the nations league and after that gets called to play the Olympics. Teams, both club sides and national teams need to learn how to manage players properly.