Move 9
Why is Ng5 an innacuracy?

It's honestly probably due to a lower engine depth. Your Ng5 move was good. At least at my engine depth, it's the second best move and Nb5 is only a super smidge better. Chances are that the lower depth engine considered Nb5 "best" and Ng5 to be however many centipawns "worse" than the best move. I wouldn't worry about it honestly.
Your Ng5 move is logical and threaten to fork everything in sight via Nxf7
For instructional value, Nb5!? is a computer-esque move which aims at advancing pawns while creating attacking threats because both sides have castled on opposite flanks and this usually means both sides may want to pawn storm there.
The line I have is 9. Nb5!? Qb4 10. a4 (securing the knight) a6 11. c3 (ignoring the attacked knight on b5 because pawn capture and recapture on b5 would open the a-file and make that deadly to that black king) Qe7 12. Bf4! attacking c7 or also 12. b4!? with the interesting idea mentioned of launching a pawn storm with an attacking advantage to white.
Since that is a lot of chess notation, I put the line into a pgn diagram too.
https://www.chess.com/game/live/131085545565