I am studying about multicollinearity in regression and in the book it says, "if there is severe (but not perfect) multicollinearity, two or more predictor variables are highly correlated, so $X^TX$ is (computationally) difficult to invert. This produces unstable regression estimates and large standard error."
Could anyone explain what makes it computationally difficult? Any mathematical explanation of the fact would be really helpful.