Exploring The Connection Between Gauge Theory And Quantum Error Correction Via Quantum Reference Frames