You can't stop an algorithm from hating.
Software engineers can make an algorithm produce any results they want. They just need to be smarter than the algorithm.
Looks like they are not up to the task.
Most AI programs using the "Large Language Model" go insane after lengthy operations, just as predicted by science fiction writers decades ago. See some stories by Larry Niven on this point.
Don't put them in control of machinery.