sharepoint online – Locking out a file in Power Automate


I have a Power Automate that updates the properties of a Document

The problem that I am having is, if a user say User A has the document open in the browser for editing, and the Power Automate is started after that by some other user say user B, all the fields updated by the Power Automate are lost when user A makes some changes to the file and saves it, after the PowerAutomate is completed

Is there a way to handle this?