It's very common for editors to automatically generate backup files in the same directory as the main file. For example, "/etc/chromium/script" will have a backup written to "/etc/chromium/script~". As currently written, /usr/bin/chromium executes not only the scripts, but also their backups. With similar situations, I've seen fixes like explicitly excluding files containing '~', or only including files ending in a specific pattern (eg, /\.conf$/).
Binary version is also affected, tested on 109.0.5414.74.