NEW YORK—Tesla Inc. on Monday fought back against JPMorgan Chase & Co over a disputed bond contract, countersuing the bank for seeking a “windfall” following Elon Musk’s notorious 2018 tweet that he might take his electric car company private. In a filing in Manhattan federal court, Tesla accused JPMorgan of “bad faith and avarice” for demanding $162.2 million after the bank had unilaterally changed the terms of warrants it received when Tesla sold convertible bonds in 2014. “JPMorgan pressed its exorbitant demand as an act of retaliation against Tesla both for it having passed over JPMorgan in major business deals and out of senior JPMorgan executives’ animus toward Mr. Musk,” Tesla said. By changing the terms of the warrants, JPMorgan “dealt itself a pure windfall” after receiving a “multibillion-dollar payout” from Tesla’s soaring share price, Tesla added. Musk is Tesla’s chief executive, and according to Forbes, is the world’s richest …