Per my test, the flow works.
Please check the following two tips.
1.In the “When a new email arrives in a shared mailbox” trigger, the account in the connection you choose should be same as the account in the original mailbox address.
2.In the create file action, the connection you choose should have enough permission in the site collection.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.