You press Ctrl-S out of habit, because that saves a file everywhere else, and the terminal stops reacting. Nothing you type shows up. It looks like a hang, but the terminal is only paused.
Ctrl-S is the old XOFF flow control key. It tells the terminal to stop sending output, and everything you type after that waits in a queue. Press Ctrl-Q (XON) and the screen catches up with everything at once.
I would rather not have the trap at all, so I’d turn flow control off in the shell startup file:
stty -ixon
Put that line in ~/.zshrc or ~/.bashrc. You can check the result with stty -a: it now lists -ixon instead of ixon. A bonus in bash is that Ctrl-S becomes free for forward history search, the partner of Ctrl-R that you never got to use.
stty -a | grep -o -- '-*ixon'
Only run stty in interactive shells. In a script or a non-interactive ssh command there is no terminal, and you get an error like stty: stdin isn't a terminal. Wrapping it in [[ $- == *i* ]] && stty -ixon keeps it quiet. If someone else’s machine freezes on you, remember Ctrl-Q before you reach for the close button.
Further reading: stty (POSIX specification), stty man page (macOS)