clearer error message if sheet has invalid related category definitions