Bonjour
Hard to comment without Photos of your switches and installation.
Generally alarms system for rollup and garage doors, use wide gap industrial switches rated for dry circuit, with strong mating magnets.
We use only Sentrol, Ademco,and Honeywell switches and magnets, with no failures in 30 years.
The switch has a metal jacketed cable and strong flat aluminum cast housing.
Jon