Facebook has agreed to pay advertisers $40 million for the inflated video metrics it incorrectly provided, a case that spurred marketers to question the reliability of measurement reports from the social network and led them to demand more safeguards from all digital platforms.