Hi Abbas,
there may be a problem with your MSA. Since the ancestral state reconstruction is site-wise, the reconstructed sequence cannot have a different length unless the sister clades have different lengths.
Note that ML ancestral state reconstruction is not a purely top-down process. So, if the sister clade of X or further away tips have the full spike protein sequence but your children miss the first and last couple one (incomplete sequences), then for the ancestor of X, RAxML gauges the childrens' missing tip state (in a likelihood environment missing and gaps translate into a p(1,1,1,1) tip propability vector) with the information reconstructed for the deeper part of the tree, i.e. ancestral states reconstructed for the sister clade's root etc.
Naturally, such reconstructions involving missing-data tips are tricky. Ideally, you hence should only include sites for the ancestral state reconstruction that are defined for all tips in your data set and make sure that your MSA is properly clipped at the start and end before running the ancestral state reconstruction.
Good reconstructing
/G