LONDON—BP said former Chief Executive Bernard Looney will lose out on as much as $40.6 million in compensation as the result of his abrupt resignation over past relationships with colleagues.