Very Very sorry to hear your bad news especially as it appears to be a wrong interpretation of the rules by the ECO.
I agree with Terpe that you should send a letter to the ECM requesting reconsideration but at the same time prepare your appeal as you have limited time.
Above all stay strong as you will get there in the end.