This issue can be resolved by upgrading to the latest version of linopy. The example error runs off v0.3.15. Once upgraded to v0.5.0, this is no longer a problem.