Many magnets are bad at higher temperatures. A client we helped design parts for uses decently sized N42 magnets and they're only good to 80C and then start forgetting where North and South are.