On gap rigidity problems for compact Hermitian symmetric spaces