By definition, under any case the finite-sample variance of $\hat \beta$
is
$${\rm V}(\hat \beta \mid \mathbf X) = (\mathbf X'\mathbf X)^{-1}\mathbf X'E\left[\varepsilon \varepsilon' \mid \mathbf X\right]\mathbf X(\mathbf X'\mathbf X)^{-1} $$
$$- (\mathbf X'\mathbf X)^{-1}\mathbf X'E\left[\varepsilon \mid \mathbf X\right]E\left[\varepsilon' \mid \mathbf X\right]\mathbf X(\mathbf X'\mathbf X)^{-1}.$$
Under the assumptions without strict exogeneity but with orthogonality,
$$E(\varepsilon \mid \mathbf X) = h(\mathbf X),\quad E(\mathbf X' \varepsilon) = 0,\quad E(\varepsilon \varepsilon' \mid \mathbf X) =\sigma^2I, $$
the finite sample variance becomes
$${\rm V}(\hat \beta \mid \mathbf X) = \sigma^2(\mathbf X'\mathbf X)^{-1} - (\mathbf X'\mathbf X)^{-1}\mathbf X'h\left(\mathbf X\right)h'\left(\mathbf X\right)\mathbf X(\mathbf X'\mathbf X)^{-1},$$
while the (conditional) bias of the estimator is
$${\rm B}(\hat \beta \mid \mathbf X) = E(\hat \beta \mid X) - \beta = (\mathbf X'\mathbf X)^{-1}\mathbf X'h\left(\mathbf X\right).$$
It follows that the Mean Squared Error of $\hat \beta$ is
$${\rm MSE}(\hat \beta \mid \mathbf X) = {\rm V}(\hat \beta \mid \mathbf X) + {\rm B}(\hat \beta \mid \mathbf X){\rm B}'(\hat \beta \mid \mathbf X) = \sigma^2\left(\mathbf X' \mathbf X\right)^{-1}.$$
We see that , when we do not assume strict exogeneity but only orthogonality, the finite sample "variance" estimator (that is automatically computed by software) in reality computes the finite-sample Mean Squared Error (this continues to hold if we assume conditional heteroskedasticity and want to compute "robust" standard errors).
In general when we expect the estimator to be biased, we tend to prefer using MSE as a more appropriate "quality" measure than the Variance alone. But this does not mean that we can use MSE in all cases instead of the Variance without consequences. For example, in significance testing, the value of the $t$-statistic will be deflated (in absolute terms) due to the use of the estimated MSE in its denominator.