There was plenty of electric car R&D (and it was never overly restricted by patents). Battery technology and electronics were just not got enough until recently, and there wasn’t as much of a financial incentive to go electric.
Kodak is a standard example of a company’s failure to migrate from its legacy business. It very much did not stifle digital imaging.