The commitments are over 19 years, but they expect to spend half of that, $447.5bn, by the end of 2030 - so about $105bn per year for the first few years.
Their 2026 revenue looks like it will be ~$67bn so clearly they're anticipating continued significant revenue growth for this to make sense.
So basically it works out if they become a Microsoft level company
If you are going bankrupt, you may as well go bankrupt spectacularly.