The foci of an ellipse are at $(2, -3 + \sqrt{5})$ and $(4,-8).$ If the ellipse is tangent to both the $x$-axis and $y$-axis, then find the length of the major axis.