The electric car company also posted an impairment of $170 million on its remaining bitcoin holdings.