Clickbait for some blog.
This is the problem with threads based on blog posts and other third-party reports --- they are a game of unreliable telephone.
Lots of details missing and the OP has no way to provide them.
IF the guy is a Spanish national and IF UA damaged the passport, UA ought to pay to have the passport replaced. The guy was in Spain and had ample opportunity to do so as he was in possession of the damaged document.
But, the notion that UA is liable for everything that follows in life because of its action is absurd and contrary to basic principles of damages.