Quantum formation of primordial black holes