Japanese technology company SoftBank Group Corp. racked up a huge loss in the July-September quarter as its technology investments, most notably office-sharing company WeWork, went sour.