A few years back, I read an analogy about actors, comparing them to the tradespeople building a house. If you liken construction to the process of making a movie, then the actors are similar to the drywallers, plumbers and electricians on the construction site. They come in, do their task under the direction of the plans and the foreman. Then they leave and go on to the next house. The plans are like the script and the foreman is the director.
They may not like either one. They may think the blueprints were created by idiots or the foreman is a dolt, but they keep their mouth shut and do their jobs. To see the completed house, they have to come back a few months later and take the tour at the open house like everyone else.
Actors are the same way. They can tell certain scripts are stupid with plot holes from page 1 to the end. With no explanation, the characters don’t act as they did in previous episodes. Similar things happen on the job site. A toilet might be placed so that you can’t close the door in the bathroom. A plumber might go to the foreman and get that changed. But for actors, the problems tend to be a bit more nebulous, and they have no power to change anything. for the most part, they just do what they’re told.
Years later they may talk about the stupid things, eg as the youtube video where Michael Shanks and Ben Crowder make fun of the zat guns on Stargate SG1. You could probably find similar videos about other shows if you looked.
The most important thing though is they don’t have a lot of power. Kelly Marie Tran had no say in the stupid plot of Last Jedi. She’s just an actress and a fan, who won the lottery to be in a Star Wars movie. Picking on her or other actors is pointless. If you have complaints, go after the director or producer. She did her job, and attacking her is childish and mean spirited.