Like, an AGI may indeed fail to understand some important things about its actions' consequences; but this isn't one of the central sources of risk. ChatGPT is probably confusing "the programmer fails to anticipate actions' consequences" with "the AI fails to anticipate them".