Amazon.com Inc. and other e-commerce retailers are likely to invest more in automation as a result of the coronavirus pandemic, a move experts say would allow the companies to further reduce reliance on human labor and better handle shocks to their supply chains in the coming years.