Exact derivation of a finite-size scaling law and corrections to scaling in the geometric Galton-Watson process