:welcome:
At the highest & lowest position the belt is furthest out of alignment so most likely to jump off.
Not much you can do other than changing the pulley for a wider one with a thicker flange.
If you regularly mow at that height then you can pack up the fixed and sliding pulley with a few washers.
Bending them slightly outwards can also help keep them in alignment.