@Jitender Kumar Chandel I think this is a valid error since the dataset cannot be registered with the above command. You should try the steps mentioned in this notebook.
These steps should help to register your CSV data as dataframe.
datastore = ws.get_default_datastore()
datastore.upload_files(files = ['./train-dataset/iris.csv'],
target_path = 'train-dataset/tabular/',
overwrite = True,
show_progress = True)
from azureml.core import Dataset
dataset = Dataset.Tabular.from_delimited_files(path = [(datastore, 'train-dataset/tabular/iris.csv')])
# preview the first 3 rows of the dataset
dataset.take(3).to_pandas_dataframe()
Please feel free to accept the above response as answer if it helped. Thanks.