Nikola Corp. is exploring options to stave off a cash crunch, including potentially selling parts or all of the company, according to people familiar with the matter.