Add better logging for size mismatches