Months-long shutdowns prompted factory closures that have been an "epic disaster" for tech giants like Tesla and Apple.