Hello,
I think this error occurs in older versions of LEAP (2020.1.20 and earlier) when using optimization with OSeMOSYS in cases where you have not specified any emission factors. I believe this error has been fixed in the latest release of LEAP, so please update to the latest version (currently v2020.1.24). The error also goes away if you have one or more emission factors in your model.