Preamp Ground Loop Problem
Do you use shielded audio cable between the mic and preamp? Ordinary non-shielded wires would be antennas that pickup mains hum and other interference.

Your very simple preamp has the resistor that powers the mic directly at the power supply that might produce hum when charging. That resistor should be fed from an RC filter.