#ERROR in Google Sheets

My script, which is relatively simple, throws an error in Google Sheets when run in certain non-US locales—so far I’ve confirmed this in Great Britain and Hungary, and possibly others.

The debug log correctly detects the locale but doesn’t display any errors.

I’ve attached the loom video showing the error along with the script and partial logs.

What could be causing this?

Thank you.

The script: https://github.com/akisselev/free/blob/main/scripts/weekly-ads-monitor/weekly-ads-monitor-1-8-8.js
Loom video: https://app.dadan.io/video/share/CcDmkMt2niYjfedI
Debug log excerpts: https://docs.google.com/document/d/1ULyr2eCWn-pqSqmlGaWJnZlM0RgaQ7qFQPlsj8XcVCM/edit?usp=sharing