Real Madrid coped well with the absence of an important player like Vinicious Jr this season because they were prepared for it. Injuries such as hamstring muscle injury can become chronic once it occurs, and Real Madrid cannot even count on him to recover and return, but if they fix this injury completely, I think Vinicious Jr. will return well and will contribute a lot to the team.
They suddenly got a very successful transfer with Jude Bellingham who scored many goals for them. Without those goals from Jude, with many are winning goals, they would have not gotten the same points like now.
Vinicius Jr. is important with their attacking system and he will return but Real Madrid must analyze why a young player like Vinicius got some injuries in this season. They will have to use him more wisely and avoid putting the player to his physical limit if they don't want to see more injuries from the player in next seasons.
For example, he was not in the Real Betis and Atletico Madrid matches. If he was not injured and was playing, I think Real Madrid would not have lost any points even in these matches.
Football is not like math. With Vinicius Jr. in theory Real Madrid will have a more powerful attacking system but it does not guarantee they will win against Real Betis or Atletico Madrid.