That is a done task. There all manner of techs to support those goals. The issue is cost and politics. There are a host of IC advancements that are being actively ignored as companies give up on IC in favor of EVs such as rotational non-piston engines.
https://www.carthrottle.com/news/pistonless-25000rpm-capable...
Safety wise, cars today are extremely safe, to the point that there it little to be gained in making them any safer. The only real gains will come from improving driver behavior through monitoring (ignition interlocks for alcohol/drugs/tiredness) or restrictions such as hard speed limiters. The market has steadfastly rejected such things.
AI could deliver a dozen new IC engine types. They would all be ignored. AI could propose new traffic rules. Those would be ignored. AI could identify potentially dangerous drivers prior to any malfeasance, and those recommendations would too be ignored. There isn't much room for AI in this field.