The tech-heavy Nasdaq Composite lost 5.1% this week and 5.5% a week earlier, marking its worst two-week stretch since dropping more than 20% in March 2020 at the beginning of the COVID-19 pandemic.