Hi,
I believe the error is occurring as the output path has the file extension for a shapefile (.shp) in a database.
e.g.
C:\MyFolder\MyGeodatabases.gdb\MyData.shp
is not valid as it is attempting to create a shapefile in the database
But
C:\MyFolder\MyData.shp
would be as it creates a shapefile in a folder.
or
C:\MyFolder\MyGeodatabases.gdb\MyData
would be as it creates a feature class in a file geodatabase.
This lines up with the two output paths visible in the screenshot.
I'd also generally recommend using feature classes in a file geodatabase over shapefiles or personal geodatabases. If we need to export to shapefile for say importing into another software, we can always do so when required.
Cheers,
Chris