Magnetism and high magnetic-field-induced stability of alloy carbides in Fe-based materials