Quantum phase transition from superconducting to insulating-like state in a pressurized cuprate superconductor