How do I turn off a command that's on repeat on Switch Bedrock?

You can disable command blocks temporarily using the command, /gamerule commandBlocksEnabled false. You can then re-enable them by changing false to true.