Probing Structural and Magnetic Instabilities and Hysteresis in Heuslers by Density Functional Theory Calculations