Quantum error correction with the toric Gottesman-Kitaev-Preskill code