When you play in the role to conduct the attack, you need more instruction
Well you need capable tactical instructions and it is safe to say Xavi is the last person to coach him well in that regard. Being a manager is very different from being a player.
The idea of a player operating in those number 10 pockets outside the box is a creative, free role where he can roam freely and recieve the ball in half spaces, turn and make something happen.
Pedri doesn't turn and make something happen. Pedri turns, gets confused and runs into traffic. Can't really play a final ball either. Best Pedri can do is play a safer pass out to the flank.
Now if you want Pedri to be coached and micromanaged then you need a tactical expert like Pep who can teach him these things. Xavi giving him instructions is only going to fuck with his head.
I think we can conclude that Pedri lacks the X Factor and magic in the final third to be a successful CAM. It's better if he plays deeper as an 8. Gundogan in his limited periods in an advanced number 10 role has already shown way more than Pedri has.
For Xavi, the best bet would be to give his players freedom in possession because in order to micromanage you need way more tactical nous and an affinity to coach progressive patterns of play.