France is investigating whether Elon Musk and his social media app X were complicit in spreading harmful AI deepfakes.