In the integrand, you seem to be multiplying $r$ and $dr$ in kilometers, and then multiplying by $H(r)$, the depth in millimeters. The limits of the integration, and the coefficient in the exponential are also in kilometers. Change the depth to kilometers by dividing $H(r)$ by $10^6$, and the result will be in $km^3$.