pub fn safe_div_bigint(x: &BigInt, y: &BigInt) -> Result<BigInt, MathError>
Performs integer division between x and y; fails if x is not divisible by y.