Days ahead of a scheduled trial, social media company Snap has settled a lawsuit accusing the platform of causing social…