According to your description, I have started a flow from the template “Create planner tasks for flagged emails in Office 365” you mentioned.
However, the issue that the tasks get duplicated multiple times doesn’t occur on my side.
The flow will be triggered only one time when an email is flagged and one task will be created in Planner.
Could you try again with it?
Please feel free post back if you are still having the issue.