Raise an exception if a stos file does not have enough lines to be valid