Nikola began to lose hundreds of thousands of dollars for each vehicle it sold as it attempted to scale up its production.