Vortex-antivortex nucleation in magnetically nanotextured superconductors: magnetic-field-driven and thermal scenarios.