To answer to a real world problem assumptions have to made.
In this case an assumption is made, the thread is massless and inextensible, which leads to a solution, for an instant of time the thread exerts an infinite force on the mass, the mass undergoes an infinite acceleration, the speed of the mass becomes zero instantaneously, which is not the experience of the real world.
One then has to go back to see which assumptions about the system have lead to this result.
In this case it is the fact that the thread is inextensible.
In the real world the thread would stretch and like a spring exerted a finite force on the mass which would reduce its speed to zero over a finite amount of time.
Depending on the amount of friction present there may also be an oscillatory phase as one would observe when a mass is released at the end of an unextended spring,
Related answer - Can an object immediately start moving at a high velocity?
Real world example of the "threads" designed to make the retarding force smaller are bungee ropes and climbing ropes which stretch quite a lot when under tension.