It looks like the issue is happening because Excel is trying to treat any cell that starts with === as a formula, which is causing the error
You can loop through the cells and check if they start with = (which includes ===), and then add an apostrophe (') at the start to make sure Excel treats it as plain text instead of a formula