Josh Warrington appeared to retire minutes after he suffered defeat on the undercard of Anthony Joshua's fight against Daniel Dubois at Wembley.