When you download Sims4studio, in one of the options at the top(I can't remember which one and I'm not on my desktop rn). It'll give you the option to do a batch fix. You can choose Fix CC light tuning or Fix CC mirror tuning, I believe. Run that and it'll fix all the script call errors for lights/mirrors in your game.