I don't know your experience or training but I think you know that a striker-fired trigger cannot compare to a good single action trigger press.
A glock is not a target pistol...But you can achieve good (hole-in-a-hole at 5m) accuracy with one. The 19x is a bit jumpy but that's because it likes to shoot fast

I think it is important to attain reasonable accuracy with a striker fired pistol (glock) that (typically) will not fail.
So...
Where are your groups? Low right or all over the place?. How big is your group size? How fast are you shooting?
Slow down, firm grip, deliberate trigger 'press'. A bit right? More right hand grip pressure. A bit left? More left hand grip pressure.
Stringing? Control breathing. All over the place? Stop slapping the trigger, slow down, stop flinching.
Focus on your sights, not the target. Watch your front sight. See how it fits into the rear sight. Make sure they are level with equal spacing. Don't look up (to target) until you are done.
So instead of thinking you can't hit anything, think your way through it by analyzing each 10 rounds and adjusting accordingly.
..Or get a CZ Shadow 2...and then be surprised at how many rounds you went through in one session.