Slenderness Ratio

It is very weird. I just did the below cable tray support design. Both the members highlighted below are same length and have same load. The top member fails due to slenderness but the bottom is okay. Has anyone ever come across the similar situation?

Thanks