Gaps in the dimensions of the automorphism groups of some geometric structures