Do not use spring constant to disable movement. Use mass and inertia.
Avoid zero division when mass or inertia are small enough.