Add validation check on entity length up to 256

Should we add a helper `validateFactEntity` and share above?