The error arise due to trap 'continue' SIGINT. From help trap:
ARG is a command to be read and executed when the shell receives the signal(s) SIGNAL_SPEC
So your script try to do continue command when recivereceive SIGINT call but the continue is used in loops only.