The impact of baryons on the sparsity of simulated galaxy clusters from THE THREE HUNDRED Project Astrophysical and cosmological implications