You would have to copy the filenames to the titles - either manually by copy and paste in the Info for a photo, or use an Automator action (or Apple Script)
On Photos 4.0 on Mojave this Automator workflow used to work:
Script: Batch Changing the Titles to the Filename - Apple Community
But currently (with Photos 5 on Catalina) it is broken. It cannot access the filenames of the selected images and is giving error messages. I am using the workaround of running the scripts on my my Mojave Macs and syncing the updated titles to the Catalina Mac with iCloud Photos.
My Apple Scripts are currently in Catalina only working, when I select the photos in the All Photos view, which is very inconvenient.
When I select the photos in All Photos, this Apple Script below is working: Open scriptEditor, paste the script into the editor window, select a few photos without a title, in the "All Photos" view, click the "run " button in Script Editor:
tell application "Photos"
activate
set imageSel to (get selection)
set currentfilename to ""
if imageSel is {} then
error "Please select an image."
else
repeat with im in imageSel
tell media item im
set newtitle to the filename of im
set oldtitle to the name of im
if (exists (oldtitle)) then
set newtitle to newtitle & " - " & oldtitle
end if
set the name of im to newtitle
end tell
end repeat
end if
return currentfilename
end tell