$5B is around 1% of their (current) trailing 4 quarter revenue, which I would say is "not outrageous" if voice/home assistants is an area of growth and investment for Amazon.
Why would a 2022 article be citing a 2018 loss figure for a almost surely (if my house is any indication) fast-growing segment?