SFO: Handle numerical issues (NaN, INFINITY, underflow).