Hi @Anonymous,
Do you want the flow to auto-generate an ID for a file with Current Year, a set of numbers and rename the file with the ID?
Please take the following workaround for a reference.
It is triggered by When a file is created in a folder.
Add Compose action to get current Year with the following code:
Utcnow(‘yyyy’)
Add action Get files (properties only).
Add Compose 2, use the following code to get the total number in the library:
length(body('Get_files_(properties_only)')?['value'])
Add Compose 3, use the following code to generate the ID:
concat(outputs('Compose'),'123',add(outputs('Compose_2'),1))
Add create file action to rename the file with the ID generate from the previous step.
Finally, delete the original file.
Image for your reference:

If possible, that ID should be auto-inserted into an existing field on the form
Do you want to insert the Id in a column of the library? Please use the Update file properties action to update it to the specific column.
The ability to change the number or remove the document from the library should be restricted to a very limited number of individuals, perhaps only a Site Collection Admin.
Please consider using Send HTTP request to SharePoint to set custom permissions, please check the following doc for a reference:
https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/set-custom-permissions-on-a-list-by-using-the-rest-interface
Best regards,
Mabel