Quantum phase transition between hyperuniform density distributions