The belt has keepers at the front & back to prevent it jumping off which some times actually work.
If the belt has jumped off a few times then the belt will be damaged so you will need to replace it.
Check the belt for damage and if you find some post photos of it .
Usually it will either be some debris stuck in one of the pulleys or a bad pulley bearing that throws the belt.