Quantum criticality and duality in the Sachdev-Ye-Kitaev/AdS2 chain