Move param count error emission to end of check_argument_types
#93118
+152
−136
check_argument_types
#93118