The company's bankruptcy comes after Amazon abandoned its planned acquisition of iRobot in 2024 due to mounting regulatory scrutiny.