Are there any commands in the starting or ending scripts that use very large X/Y/Z values? For example, G1 Z300 if the machine only has a 200mm Z size. I think that could sometimes trigger errors like this.
Another idea could be if you have any parts that are outside of the printable area. For example, a part that is too close to the end, or a very large skirt that ends up going out-of-bounds.