This cycle of errors can occur if you have something such as:
<haxelib name="openfl" />
<haxelib name="openfl" version="4.0.0" />
First OpenFL (latest) is pulled in. The version check passes, the tools record OpenFL as version "5.0.0"
The second (older) OpenFL is pulled in. The version check does not pass, because the tools still have "5.0.0" recorded as the version, which fails the older include.xml version check
The next version of Lime has a warning (and fix) for this multiple import problem, as well as smarter "wildcard" version imports for OpenFL pulling in Lime, which should help