X and Grok are struggling to contain a scandal involving sexualized images of real people created by its AI.