Study and mitigation of radiation damage on the P12 BioSAXS beamline