Scalable Quantum-Inspired Optimization through Dynamic Qubit Compression