Bosch will cut up to 5,500 jobs as it struggles with slow electric vehicle sales and competition from Chinese imports.