Core Scientific said it might run out of cash before the end of the year and lawsuits are piling up.