Is there anything I could have done to stop that invasion at the end?

Yes.

1 Like

Also, move 224 at O18 would kill black. There’s no need to save that one stone by playing at L19 because black gains nothing by capturing it, just a false eye. O18, however, puts black in double-atari and takes out an eye.