Caprice core autoload trouble

I try to open some Amstrad roms in RetroArch and the core opens with the Amstrad screen but i get an error like this:

“syntax error in 0”

And then it just waits for me to enter commands.

Other games work but it’s completely random which games work and which ones don’t.

Also, the floppy loading sounds like someone is knocking on the door.