We are now writing 2025 - twenty years ago password synchronization was a security problem....
So my first advice is to get rid of the password synchronization as soon as possible - it was a convenient but stupid and insecure way of supporting users ease of access - should definitely not be used if you are taken security (specifically lateral movements) seriously.
Beside that - check this section of the documentation Password synchronization properties - the second property is what you want to use...
There are other ways to do it depending on how you do the synchronization - but assuming you are using the default password synchronization this is the way to solve the issue.
The older (and IMHO better but more complex way) is to use a specific account for the password synchronization that is coupled to the specific plugin(s) and is using ACIs to scope the password changes are a much more flexible and controllable option - but that is still a bad idea as stated...