The AI-driven memory shortage is hitting Samsung’s bottom line.