Here's how to create a proper auto-linking flow:
Create a brand new flow instead of modifying the existing one:
Go to Authentication > Flows
Click "Create" and name it "Auto Link Identity Provider Flow" (or similar)
Click "Save"
Add only these two authenticators in this exact order:
First, add "Detect Existing Broker User"
Second, add "Automatically Set Existing User"
Keep the flow simple - do not add any other authenticators or subflows
Configure your Google/Gmail identity provider:
Go to Identity Providers
Select your Google provider
Change "First Login Flow" to your new flow
Set "Sync Mode" to "force" if you want profile updates
Save changes