The Bedford-based company is waging multiple patent fights with its toughest rival and grappling with the ongoing supply chain crisis.