Magnets don't wear out unless they fell right out of the case. Must be a software glitch or something. Either that or the magnets are not very strong, and over time the case is slightly out of alignment from use and that is triggering the issue. Third party cases aren't known for having the best magnetic locking abilities. They can be quite inconsistent if you got one from a cruddy brand.