Emergent geometry in a gauge-invariant matrix quantum mechanics