The fact that there is no Yamal is not the reason for the defeat and draw in the last two matches by Barcelona. Revisit the matches and you will see that they had mistakes elsewhere, moreover Yamal is not Barcelona's most prolific scorer, he is an important player in the squad but not the main one. Real are actually on Barcelona's heels, even with their game in hand it's really hard to predict what the outcome will be at the end of the season.
Lamine Yamal is not the top scorer at the moment but even so, he is still very influential for Barcelona because his contribution to his teammates is very good and with the absence of the player, there must be a slight decline in Barcelona performance. And regarding Madrid, I agree with you that what Madrid is doing right now is just like a small problem that has happened in the past. As long as the points difference is not too far, Madrid can still catch up on the points to win the title this season.