Dynamics of Long-lived Axion Domain Walls and Its Cosmological Implications