Numerical study on flux-jump occurrence in a cup-shaped MgB2 bulk for magnetic shielding applications