If I understand correctly; there is an additional potential cost to Tesla:
If it sells fewer cars, it gets fewer carbon credits. Then it may end up paying a penalty to the other car manufacturers it had arranged to sell them to.
Some of this happens under EU rules: https://futurism.com/tesla-sales-carbon-credits-europe .