actually, AutoLISP is specialized language for CAD programs, so it is not compatible with CommonLISP in many ways.
the reason that the codes generated by AI are inaccurate is that there are relatively small autolisp codes, so the AI tries to use some codes of CommonLISP, but it is not compatible.
I recommend you to use VSCode with AutoLISP Extension, because it will colorize available autolisp function and keywords into pink