Hi, sorry for replying 4 days late, I hadn’t seen it.
That gym is the most difficult in my opinion, but it’s been proven that it’s possible to beat it without using the starter or Solrock/Lunatone, just with the wild route Pokémon.
The only thing I can tell you is to send out injured Pokémon against Ninjask so it don’t make you flinch.