RIO DE JANEIRO/BRASILIA, Sept 1 - Brazilian authorities are grappling with how to keep AI from undermining the country's hotly contested election, as AI-generated content floods voters' social media feeds and loose-lipped chatbots challenge regulators' abilities to rein in misinformation.