Why is 4(x+2)+4x=8 not a correct equation to solve a geometry problem if x represents a length of measurement?

Because the solution (x=0) corresponds to no length at all. You cannot have a line of zero length.