Yep it was the itch.io app sandbox that was causing it, phew!
Might be nice to add a note to the game page that the app sandbox doesn't work with this game, at least on macOS - it was a very bizarre and frustrating game-breaking behavior (and one which would be difficult to fix).