The main limit switch is a safety switch that shuts down the furnace system if the system overheats. However, if the main limit switch works improperly, it will shut down the system abruptly.
The worst possible case can be due to a faulty heat exchanger. If there are cracks in the heat exchanger, you might need to replace the furnace unit because repairing the heat exchanger is expensive.