You could try the Obsidian Filename Heading Sync Plugin. There might even be another plugin that also does this, but I’m not sure. Here’s a link to a post that is very relevant and that links to the GitHub page: Plugin for keeping the filename and first heading of a file in sync
Good luck!