KAFKA-18812: Improve consumer API errors upon background thread failure (#22035)