Text this: Optimizing MeV photon dose generation in laser-solid interactions via stable beam propagation