Mitigation of Demagnetization of Bulk Superconductors by Time-Varying External Magnetic Fields