I is not the engine that make the mistakes but the application that tries to translate the engine evaluations into notations and language. It really does come up with some remarkable suggestions.
9..g6 could come out as an inaccuracy if the engines one step further down tha analyses lane have concluded that a nother move (eg 9..Qf6) is slightly better for Black, but I doubt it.
I cannot find a logical reason for the following engine analysis.
I assume this to be an engine error & have posted so amendments can be made. Your constructive criticism would be appreciated if there is something I have misunderstood with the analysis.