Warner Bros. Discovery reported a $10 billion loss during the second quarter — a biproduct of a massive charge it booked as viewers retreat from traditional TV and the company deals with a potential future without Natioanl Basketball Association games.