A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Similar issue here.
Solved: Excel Automate: New Script → Error Message - Power Platform Community (microsoft.com)
I'd suggest you create a new thread on Power Automate forum which is special channel to handle Office Script issue.
Microsoft Power Automate Community - Power Platform Community