Amazon.com Inc. reported a loss of nearly $4 billion in the first quarter of 2022, as its investment in Rivian Automotive Inc. wiped away all of its profit and more, and delivered a disappointing forecast Thursday, sending shares down in late trading.