[SPARK-58042][CONNECT] Validate the UDT jvm_class is a UserDefinedType before instantiating it