Optimal universal quantum error correction via bounded reference frames